MCPcopy Create free account
hub / github.com/carbonengine/trinity / PutData

Method PutData

trinity/Tr2DynamicRingBuffer.cpp:43–50  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Puts new data into the buffer. If the data size is larget than the buffer size, the buffer is resized. Arguments: data - Pointer to data size - Size of data in bytes bufferOffset - (out) offset into the buffer in bytes where the data will reside renderContext - current render context Return Value: s

Source from the content-addressed store, hash-verified

41// success code
42// --------------------------------------------------------------------------------------
43ALResult Tr2DynamicRingBuffer::PutData(
44 const void* data,
45 uint32_t size,
46 uint32_t& offset,
47 Tr2RenderContext& renderContext )
48{
49 return PutData( data, size, 4, offset, renderContext );
50}
51
52ALResult Tr2DynamicRingBuffer::PutData(
53 const void* data,

Callers 2

UpdateInstanceBufferMethod · 0.80
IssueDrawCallMethod · 0.80

Calls 6

emptyMethod · 0.80
IsValidFunction · 0.70
AlignFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
SetNameMethod · 0.45

Tested by

no test coverage detected