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

Function CreateWriteToUavPS

trinityal/tests/Rendering.cpp:134–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132#if TRINITY_PLATFORM_SUPPORTS_UNORDERED_ACCESS
133
134ALResult CreateWriteToUavPS( Tr2ShaderAL& shader, Tr2PrimaryRenderContextAL& renderContext )
135{
136 uint8_t bytecode[] = {
137#include INCLUDE_SHADER_CODE( WriteToUav.ps )
138 };
139
140 auto input = Tr2ShaderSignatureAL()
141 .Add( Tr2ShaderRegisterAL::UAV_TEXTURE2D, 1 );
142
143 return shader.Create( PIXEL_SHADER, bytecode, input, "", renderContext );
144}
145
146#endif
147

Callers 1

TEST_FFunction · 0.85

Calls 3

AddMethod · 0.45
CreateMethod · 0.45

Tested by

no test coverage detected