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

Function CreateSampleVolumeTexturePS

trinityal/tests/Rendering.cpp:118–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118ALResult CreateSampleVolumeTexturePS( Tr2ShaderAL& shader, Tr2PrimaryRenderContextAL& renderContext )
119{
120 uint8_t bytecode[] = {
121#include INCLUDE_SHADER_CODE( SampleVolumeTexture.ps )
122 };
123
124 auto input = Tr2ShaderSignatureAL()
125 .Add( Tr2ShaderRegisterAL::CONSTANT_BUFFER, 0 )
126 .Add( Tr2ShaderRegisterAL::SRV_TEXTURE3D, 0 )
127 .Add( Tr2ShaderRegisterAL::SAMPLER, 0 );
128
129 return shader.Create( PIXEL_SHADER, bytecode, input, "", renderContext );
130}
131
132#if TRINITY_PLATFORM_SUPPORTS_UNORDERED_ACCESS
133

Callers 1

TEST_FFunction · 0.85

Calls 3

AddMethod · 0.45
CreateMethod · 0.45

Tested by

no test coverage detected