Skip to content

Shader uniforms #118

Answered by LukasBanana
st0rmbtw asked this question in Q&A
Discussion options

You must be logged in to vote

Take a look at the ResourceBinding example and search for "uniform". The GLSL shader use two uniforms, instance and lightVec. They have to be declared in the PipelineLayout and then set via CommandBuffer::SetUniform each time the respective PSO is bound.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LukasBanana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants