Lines Matching refs:buffer
74 static void Free(void* buffer) in Free() argument
78 s_Allocator->Free(buffer); in Free()
311 NWUseCmdlist(const T* buffer, int size) in NWUseCmdlist() argument
314 nngxAdd3DCommand( const_cast<GLvoid*>(buffer), GLsizei(size), GL_TRUE ); in NWUseCmdlist()
318 NW_NULL_ASSERT( buffer ); in NWUseCmdlist()
320 nw::os::MemCpy(__cb_current_command_buffer, buffer, size); in NWUseCmdlist()
327 NWUseCmdlist(const void* buffer) in NWUseCmdlist() argument
331 NW_NULL_ASSERT( buffer ); in NWUseCmdlist()
335 internal::FastWordCopy((u32*)__cb_current_command_buffer, (u32*)buffer, size); in NWUseCmdlist()
337 nw::os::MemCpy(__cb_current_command_buffer, buffer, size); in NWUseCmdlist()
344 NWUseCmdlist<4>(const void* buffer)
346 NW_NULL_ASSERT( buffer );
348 *reinterpret_cast<u32*>(__cb_current_command_buffer) = *reinterpret_cast<const u32*>(buffer);
354 NWUseCmdlist<8>(const void* buffer)
356 NW_NULL_ASSERT( buffer );
358 *reinterpret_cast<u64*>(__cb_current_command_buffer) = *reinterpret_cast<const u64*>(buffer);
364 NWUseCmdlist<12>(const void* buffer)
366 NW_NULL_ASSERT( buffer );
368 *reinterpret_cast<u64*>(__cb_current_command_buffer) = *reinterpret_cast<const u64*>(buffer);
369 …nterpret_cast<u32*>(__cb_current_command_buffer + 2) = *(reinterpret_cast<const u32*>(buffer) + 2);
375 NWUseCmdlist<16>(const void* buffer)
377 NW_NULL_ASSERT( buffer );
379 *reinterpret_cast<u64*>(__cb_current_command_buffer) = *reinterpret_cast<const u64*>(buffer);
380 …nterpret_cast<u64*>(__cb_current_command_buffer + 2) = *(reinterpret_cast<const u64*>(buffer) + 1);
1386 CommandBufferInfo(void* buffer, size_t size) in CommandBufferInfo() argument
1388 m_TopAddress = static_cast<u8*>( buffer ); in CommandBufferInfo()
1461 PutCommand(const void* buffer, int size) in PutCommand() argument
1463 NW_NULL_ASSERT(buffer); in PutCommand()
1472 nw::os::MemCpy(this->GetCurrentAddress(), buffer, size); in PutCommand()
1489 PutCommand(const void* buffer) in PutCommand() argument
1491 NW_NULL_ASSERT(buffer); in PutCommand()
1500 internal::FastWordCopy((u32*)this->GetCurrentAddress(), (u32*)buffer, size); in PutCommand()
1558 CommandBufferInfo::PutCommand<4>(const void* buffer)
1560 NW_NULL_ASSERT( buffer );
1567 *reinterpret_cast<u32*>(this->GetCurrentAddress()) = *reinterpret_cast<const u32*>(buffer);
1575 CommandBufferInfo::PutCommand<8>(const void* buffer)
1577 NW_NULL_ASSERT( buffer );
1584 *reinterpret_cast<u64*>(this->GetCurrentAddress()) = *reinterpret_cast<const u64*>(buffer);
1592 CommandBufferInfo::PutCommand<12>(const void* buffer)
1594 NW_NULL_ASSERT( buffer );
1601 *reinterpret_cast<u64*>(this->GetCurrentAddress()) = *reinterpret_cast<const u64*>(buffer);
1602 …*reinterpret_cast<u32*>(this->GetCurrentAddress() + 8) = *(reinterpret_cast<const u32*>(buffer) + …
1610 CommandBufferInfo::PutCommand<16>(const void* buffer)
1612 NW_NULL_ASSERT( buffer );
1619 *reinterpret_cast<u64*>(this->GetCurrentAddress()) = *reinterpret_cast<const u64*>(buffer);
1620 …*reinterpret_cast<u64*>(this->GetCurrentAddress() + 8) = *(reinterpret_cast<const u64*>(buffer) + …
1701 void* buffer; variable
1703 if (allocator != NULL) { buffer = allocator->Alloc(size, 4); }
1704 else { buffer = CommandCacheManager::Allocate(size); }
1706 if (! buffer ) { return NULL; }
1708 nw::os::MemCpy(buffer, m_StartAddr, size);
1710 return buffer;