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

Function CreatePositionOnlyWithPerObjectDataVS

trinityal/tests/Rendering.cpp:69–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69ALResult CreatePositionOnlyWithPerObjectDataVS( Tr2ShaderAL& shader, Tr2PrimaryRenderContextAL& renderContext )
70{
71 uint8_t bytecode[] = {
72#include INCLUDE_SHADER_CODE( PositionOnlyWithPerObjectData.vs )
73 };
74
75 auto input = Tr2ShaderSignatureAL()
76 .Add( Tr2VertexDefinition::POSITION, 0, 0, Tr2ShaderPipelineInputAL::FLOAT, 3 )
77 .Add( Tr2ShaderRegisterAL::CONSTANT_BUFFER, 0 );
78
79 return shader.Create( VERTEX_SHADER, bytecode, input, "", renderContext );
80}
81
82ALResult CreateInstancedRenderingVS( Tr2ShaderAL& shader, Tr2PrimaryRenderContextAL& renderContext )
83{

Callers 1

TEST_FFunction · 0.85

Calls 3

AddMethod · 0.45
CreateMethod · 0.45

Tested by

no test coverage detected