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

Method IsValid

trinity/Shader/Parameter/Tr2GeometryBufferParameter.cpp:147–150  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Checks if the parameter data is valid. Used for debugging. Return value: true If paramter contains valid geometry or UAV buffer false Otherwise --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

145// false Otherwise
146// --------------------------------------------------------------------------------------
147bool Tr2GeometryBufferParameter::IsValid() const
148{
149 return m_gpuBuffer && m_gpuBuffer->GetGpuBuffer( m_meshIndex );
150}
151
152// --------------------------------------------------------------------------------------
153void Tr2GeometryBufferParameter::SetGpuBuffer( ITr2GpuBuffer* buffer )

Callers 15

RenderMethod · 0.45
EndCaptureMethod · 0.45
ReplayCaptureMethod · 0.45
GatherSpritesMethod · 0.45
OnPrepareResourcesMethod · 0.45
AllocateRenderTargetMethod · 0.45
ReleaseResourcesMethod · 0.45
BeginManagedRenderingMethod · 0.45

Calls 1

GetGpuBufferMethod · 0.45

Tested by

no test coverage detected