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

Method ApplyBuffer

trinity/Shader/Tr2ShaderBuffer.cpp:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void Tr2ShaderBuffer::ApplyBuffer( Tr2RenderContext& renderContext )
26{
27 FillAndSetConstants( *renderContext.GetConstantBuffer( m_shaderType ), m_data, m_size, m_shaderType, Tr2Renderer::GetPerObjectStartRegister( m_shaderType ), renderContext );
28}
29
30void Tr2ShaderBuffer::SetData( void* data, int size )
31{

Callers 2

ExecuteMethod · 0.80

Calls 2

GetConstantBufferMethod · 0.80
FillAndSetConstantsFunction · 0.50

Tested by

no test coverage detected