Lines Matching refs:buffer
72 static void Free(void* buffer) in Free() argument
76 s_Allocator->Free(buffer); in Free()
309 NWUseCmdlist(const T* buffer, int size) in NWUseCmdlist() argument
312 nngxAdd3DCommand( const_cast<GLvoid*>(buffer), GLsizei(size), GL_TRUE ); in NWUseCmdlist()
316 NW_NULL_ASSERT( buffer ); in NWUseCmdlist()
318 nw::os::MemCpy(__cb_current_command_buffer, buffer, size); in NWUseCmdlist()
325 NWUseCmdlist(const void* buffer) in NWUseCmdlist() argument
329 NW_NULL_ASSERT( buffer ); in NWUseCmdlist()
333 internal::FastWordCopy((u32*)__cb_current_command_buffer, (u32*)buffer, size); in NWUseCmdlist()
335 nw::os::MemCpy(__cb_current_command_buffer, buffer, size); in NWUseCmdlist()
342 NWUseCmdlist<4>(const void* buffer)
344 NW_NULL_ASSERT( buffer );
346 *reinterpret_cast<u32*>(__cb_current_command_buffer) = *reinterpret_cast<const u32*>(buffer);
352 NWUseCmdlist<8>(const void* buffer)
354 NW_NULL_ASSERT( buffer );
356 *reinterpret_cast<u64*>(__cb_current_command_buffer) = *reinterpret_cast<const u64*>(buffer);
362 NWUseCmdlist<12>(const void* buffer)
364 NW_NULL_ASSERT( buffer );
366 *reinterpret_cast<u64*>(__cb_current_command_buffer) = *reinterpret_cast<const u64*>(buffer);
367 …nterpret_cast<u32*>(__cb_current_command_buffer + 2) = *(reinterpret_cast<const u32*>(buffer) + 2);
373 NWUseCmdlist<16>(const void* buffer)
375 NW_NULL_ASSERT( buffer );
377 *reinterpret_cast<u64*>(__cb_current_command_buffer) = *reinterpret_cast<const u64*>(buffer);
378 …nterpret_cast<u64*>(__cb_current_command_buffer + 2) = *(reinterpret_cast<const u64*>(buffer) + 1);
1384 CommandBufferInfo(void* buffer, size_t size) in CommandBufferInfo() argument
1386 m_TopAddress = static_cast<u8*>( buffer ); in CommandBufferInfo()
1459 PutCommand(const void* buffer, int size) in PutCommand() argument
1461 NW_NULL_ASSERT(buffer); in PutCommand()
1470 nw::os::MemCpy(this->GetCurrentAddress(), buffer, size); in PutCommand()
1487 PutCommand(const void* buffer) in PutCommand() argument
1489 NW_NULL_ASSERT(buffer); in PutCommand()
1498 internal::FastWordCopy((u32*)this->GetCurrentAddress(), (u32*)buffer, size); in PutCommand()
1556 CommandBufferInfo::PutCommand<4>(const void* buffer)
1558 NW_NULL_ASSERT( buffer );
1565 *reinterpret_cast<u32*>(this->GetCurrentAddress()) = *reinterpret_cast<const u32*>(buffer);
1573 CommandBufferInfo::PutCommand<8>(const void* buffer)
1575 NW_NULL_ASSERT( buffer );
1582 *reinterpret_cast<u64*>(this->GetCurrentAddress()) = *reinterpret_cast<const u64*>(buffer);
1590 CommandBufferInfo::PutCommand<12>(const void* buffer)
1592 NW_NULL_ASSERT( buffer );
1599 *reinterpret_cast<u64*>(this->GetCurrentAddress()) = *reinterpret_cast<const u64*>(buffer);
1600 …*reinterpret_cast<u32*>(this->GetCurrentAddress() + 8) = *(reinterpret_cast<const u32*>(buffer) + …
1608 CommandBufferInfo::PutCommand<16>(const void* buffer)
1610 NW_NULL_ASSERT( buffer );
1617 *reinterpret_cast<u64*>(this->GetCurrentAddress()) = *reinterpret_cast<const u64*>(buffer);
1618 …*reinterpret_cast<u64*>(this->GetCurrentAddress() + 8) = *(reinterpret_cast<const u64*>(buffer) + …
1699 void* buffer; variable
1701 if (allocator != NULL) { buffer = allocator->Alloc(size, 4); }
1702 else { buffer = CommandCacheManager::Allocate(size); }
1704 if (! buffer ) { return NULL; }
1706 nw::os::MemCpy(buffer, m_StartAddr, size);
1708 return buffer;