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

Function CopyValueToEffect

trinity/ITr2EffectValue.h:28–34  ·  view source on GitHub ↗

Copy the value to the effect using 'destHandle'. For basic types 'destHandle' is a memory address for the constant block being constructed for the effect. Size is passed down to potentially limit the number of bytes copied. For example, a TriTransformParameter holds a 4x4 matrix but the shader might use only a 2x2 portion of it. The fxc compiler is clever enough to only give 2 constants to the va

Source from the content-addressed store, hash-verified

26 // give 2 constants to the variable in that case.
27 // The size is in bytes.
28 virtual void CopyValueToEffect(
29 Tr2RenderContextEnum::ShaderType inputType,
30 unsigned char* destHandle,
31 size_t size,
32 Tr2RenderContext& renderContext ) const
33 {
34 }
35
36 virtual bool CopyToResourceSet(
37 Tr2ResourceSetDescriptionAL & resourceDesc,

Callers 5

BLUE_CLASSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected