Replies: 2 comments
-
That is correct. You still need to bind an SRB if there are any resources. The PSO keeps references to static resources, but the SRB still needs to be created and set. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Understood. I also figured out that Thanks for the help! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This has an example of texture (
g_StaticTexture
) used withSHADER_RESOURCE_VARIABLE_TYPE_STATIC
.When I'm trying that (e.g. by changing type in
Tutorial03_Texturing
and binding it usingIPipelineState::GetStaticVariableByName
) it seems that the texture and its sampler are still associated with SRB, leavingDiligent Engine: ERROR: No resource is bound to variable 'g_Texture' in shader 'Cube PS' of PSO 'Cube PSO'
in the output. If no SRB is set it results in an assertion instead.Is it possible to bind texture using PSO or the documentation is just inaccurate there?
Beta Was this translation helpful? Give feedback.
All reactions