Lines Matching refs:size
61 static void* Allocate(s32 size) in Allocate() argument
64 return s_Allocator->Alloc(size, 4); in Allocate()
309 NWUseCmdlist(const T* buffer, int size) in NWUseCmdlist() argument
312 nngxAdd3DCommand( const_cast<GLvoid*>(buffer), GLsizei(size), GL_TRUE ); in NWUseCmdlist()
314 NW_ASSERT(size > 0); in NWUseCmdlist()
315 NW_ALIGN_ASSERT(size, 4); in NWUseCmdlist()
318 nw::os::MemCpy(__cb_current_command_buffer, buffer, size); in NWUseCmdlist()
319 __cb_current_command_buffer += size >> 2; in NWUseCmdlist()
323 template <int size>
327 NW_ASSERT(size > 0); in NWUseCmdlist()
328 NW_ALIGN_ASSERT(size, 4); 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()
336 __cb_current_command_buffer += size >> 2; in NWUseCmdlist()
412 NWForwardCurrentCmdBuffer(u32 size) in NWForwardCurrentCmdBuffer() argument
414 NW_ALIGN_ASSERT(size, 4); in NWForwardCurrentCmdBuffer()
416 __cb_current_command_buffer += size >> 2; in NWForwardCurrentCmdBuffer()
426 NWBackwardCurrentCmdBuffer(u32 size) in NWBackwardCurrentCmdBuffer() argument
428 NW_ALIGN_ASSERT(size, 4); in NWBackwardCurrentCmdBuffer()
430 __cb_current_command_buffer -= size >> 2; in NWBackwardCurrentCmdBuffer()
1384 CommandBufferInfo(void* buffer, size_t size) in CommandBufferInfo() argument
1388 m_Size = size; in CommandBufferInfo()
1389 m_BottomAddress = reinterpret_cast<u8*>(nw::ut::AddOffsetToPtr( m_TopAddress, size )); in CommandBufferInfo()
1438 ForwardCommand(int size) in ForwardCommand() argument
1440 if (!this->CheckRestMemory(size)) in ForwardCommand()
1445 this->ForwardAddress(size); in ForwardCommand()
1459 PutCommand(const void* buffer, int size) in PutCommand() argument
1462 NW_ASSERT(size > 0); in PutCommand()
1463 NW_ALIGN_ASSERT(size, 4); in PutCommand()
1465 if (!this->CheckRestMemory(size)) in PutCommand()
1470 nw::os::MemCpy(this->GetCurrentAddress(), buffer, size); in PutCommand()
1472 this->ForwardAddress(size); in PutCommand()
1485 template <int size>
1490 NW_STATIC_ASSERT(size > 0); in PutCommand()
1491 NW_STATIC_ASSERT((size % 4) == 0); in PutCommand()
1493 if (!this->CheckRestMemory(size)) in PutCommand()
1498 internal::FastWordCopy((u32*)this->GetCurrentAddress(), (u32*)buffer, size); in PutCommand()
1500 this->ForwardAddress(size); in PutCommand()
1516 bool CheckRestMemory(size_t size) in CheckRestMemory() argument
1520 …return nw::ut::AddOffsetToPtr(__cb_current_command_buffer, size) <= __cb_current_max_command_buffe… in CheckRestMemory()
1524 return nw::ut::AddOffsetToPtr(m_CurrentAddress, size) <= m_BottomAddress; in CheckRestMemory()
1533 void ForwardAddress(int size) in ForwardAddress() argument
1537 m_CurrentAddress += size; in ForwardAddress()
1541 NWForwardCurrentCmdBuffer(size); in ForwardAddress()
1695 s32 size = this->GetSize(); variable
1697 if (size == 0) { return NULL; }
1701 if (allocator != NULL) { buffer = allocator->Alloc(size, 4); }
1702 else { buffer = CommandCacheManager::Allocate(size); }
1706 nw::os::MemCpy(buffer, m_StartAddr, size);
1756 u32 size : 7; member
1772 int commandSize = (command->size + 1) & ~1;
1800 … NN_LOG("size : 0x%x (%d)\n", command->size, command->seq); // データの個数-1 0:シングル >1:バースト