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

Method Create

trinity/Tr2GpuBuffer.cpp:100–108  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Assigns new values to buffer parameters and construct AL buffer. Arguments: count - Number of elements in the buffer format - Type of buffer elements cpuWritable - Can the buffer be locked with write-only access gpuWritable - Can the buffer be written into by GPU drawIndirect - Is the buffer used fo

Source from the content-addressed store, hash-verified

98// false Otherwise
99// --------------------------------------------------------------------------------------
100ALResult Tr2GpuBuffer::Create( uint32_t count,
101 Tr2RenderContextEnum::PixelFormat format,
102 CreationFlags creationFlags )
103{
104 m_count = count;
105 m_format = format;
106 m_creationFlags = creationFlags;
107 return CreateBuffer();
108}
109
110// --------------------------------------------------------------------------------------
111// Description:

Callers 15

FillAndSetConstantsFunction · 0.45
RenderFogMethod · 0.45
CreateBufferMethod · 0.45
UpdateLightBufferMethod · 0.45
OnPrepareResourcesMethod · 0.45
OnPrepareResourcesMethod · 0.45
CreateTextureMethod · 0.45
EjectTextureHelperMethod · 0.45
UpdateBufferMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected