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

Method SetParameter

trinity/Shader/Tr2Effect.cpp:2065–2080  ·  view source on GitHub ↗

--------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2063
2064// --------------------------------------------------------------------------------------
2065void Tr2Effect::SetParameter( const BlueSharedString& name, ITr2GpuBuffer* buffer )
2066{
2067 auto existing = GetResourceByName( name.c_str() );
2068 Tr2GeometryBufferParameterPtr param = BlueCastPtr( existing );
2069 if( param )
2070 {
2071 param->SetGpuBuffer( buffer );
2072 }
2073 else
2074 {
2075 param.CreateInstance();
2076 param->m_name = name;
2077 param->SetGpuBuffer( buffer );
2078 AddResource( param );
2079 }
2080}
2081
2082// --------------------------------------------------------------------------------------
2083void Tr2Effect::SetParameter( const BlueSharedString& name, ITr2TextureProvider* texture, uint32_t uavMipLevel )

Callers 15

RenderVolumetricsMethod · 0.45
RenderFogMethod · 0.45
DoUpdateListsMethod · 0.45
OnPrepareResourcesMethod · 0.45
Tr2ShadowMapMethod · 0.45
DrawToShadowMapResultMethod · 0.45
ExecuteMethod · 0.45
PerformPassMethod · 0.45
ComputeCORTAOMethod · 0.45
DoPrepareResourcesMethod · 0.45

Calls 12

CreateInstanceMethod · 0.80
SetTextureProviderMethod · 0.80
SetUavMipLevelMethod · 0.80
AppendMethod · 0.80
GetTextureProviderMethod · 0.80
BroadcastMethod · 0.80
Vector4Class · 0.50
SetGpuBufferMethod · 0.45
CreateMethod · 0.45
SetValueMethod · 0.45
GetTextureMethod · 0.45
GetGpuBufferMethod · 0.45

Tested by

no test coverage detected