Lines Matching refs:resStream
68 BufferData( u32 bufferID, ResIndexStream resStream, u32 loadFlag ) in BufferData() argument
70 u32 size = resStream.GetStreamCount(); in BufferData()
78 nngxUpdateBuffer( resStream.GetStream(), size ); in BufferData()
86 nngxUpdateBuffer( resStream.GetStream(), size ); in BufferData()
87 internal::nwgfxAddVramDmaCommand( resStream.GetStream(), address, size ); in BufferData()
89 resStream.SetLocationAddress( address ); in BufferData()
90 resStream.ref().m_MemoryArea = area; in BufferData()
97 nw::os::MemCpy( address, resStream.GetStream(), size ); in BufferData()
100 resStream.SetLocationAddress( address ); in BufferData()
101 resStream.ref().m_MemoryArea = NN_GX_MEM_FCRAM; in BufferData()
122 DeleteBuffer( u32 bufferID, ResIndexStream resStream ) in DeleteBuffer() argument
124 GLuint area = resStream.ref().m_MemoryArea; in DeleteBuffer()
128 void* address = reinterpret_cast<void*>( resStream.GetLocationAddress() ); in DeleteBuffer()
130 resStream.SetLocationAddress( static_cast<u32>(NULL) ); in DeleteBuffer()
266 ResIndexStream resStream = this->GetIndexStreams( u32(i) ); in Setup() local
267 bufferObjects[ i ] = reinterpret_cast<u32>(resStream.ptr()); in Setup()
269 s32 commandSize = internal::CalcSetupDrawIndexStreamCommand( resStream ); in Setup()
270 resStream.ref().m_CommandCache = allocator->Alloc(commandSize, 4); in Setup()
271 resStream.ref().m_CommandCacheSize = commandSize; in Setup()
273 if (resStream.GetLocationAddress() != NULL) in Setup()
275 resStream.ref().m_MemoryArea = ResIndexStreamData::AREA_NO_MALLOC; in Setup()
279 u32 size = resStream.GetStreamCount(); in Setup()
280 void* buf = resStream.GetStream(); in Setup()
283 int loadFlag = resStream.GetLocationFlag(); in Setup()
291 BufferData( bufferObjects[ i ], resStream, loadFlag ); in Setup()
405 ResIndexStream resStream = this->GetIndexStreams( u32(i) ); in Cleanup() local
406 if (resStream.IsValid() && resStream.ref().m_CommandCache) in Cleanup()
408 this->ref().m_CommandAllocator->Free(resStream.ref().m_CommandCache); in Cleanup()
409 resStream.ref().m_CommandCache = NULL; in Cleanup()
410 resStream.ref().m_CommandCacheSize = 0; in Cleanup()
413 DeleteBuffer( bufferObjects[ i ], resStream ); in Cleanup()