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

Function CreatePositionOnlyVS

trinityal/tests/SwapChainResizing.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24{
25
26ALResult CreatePositionOnlyVS( Tr2ShaderAL& shader, Tr2PrimaryRenderContextAL& renderContext )
27{
28 uint8_t bytecode[] = {
29#include INCLUDE_SHADER_CODE( PositionOnly.vs )
30 };
31
32 auto input = Tr2ShaderSignatureAL().Add( Tr2VertexDefinition::POSITION, 0, 0, Tr2ShaderPipelineInputAL::FLOAT, 3 );
33
34 return shader.Create( VERTEX_SHADER, bytecode, input, "", renderContext );
35}
36
37ALResult CreateConstantColorPS( Tr2ShaderAL& shader, Tr2PrimaryRenderContextAL& renderContext )
38{

Callers 1

TEST_FFunction · 0.70

Calls 3

AddMethod · 0.45
CreateMethod · 0.45

Tested by

no test coverage detected