Repository navigation
Can I bind multisample texture to a shader variable? #172
Answered
by
TheMostDiligent
FlightBlaze
asked this question in
Q&A
|
Me: Trying to bind multisample texture to a shader variable Me: (hanged himself) Question: Can I somehow bind multisample texture to a shader variable? Wherefore: I want to blend foreground and background with a custom blending mode in pixel shader |
Answered by
TheMostDiligent
Dec 1, 2021
Replies: 1 comment
|
You can only bind multisample texture to a special mutlisample texture variable type in the shader. You can't sample this texture with any sampler and can only fetch individual texels. |
0 replies
Answer selected by
TheMostDiligent
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can only bind multisample texture to a special mutlisample texture variable type in the shader. You can't sample this texture with any sampler and can only fetch individual texels.
If yow want to use result of rendering with MSAA in a shader, you need to resolve the MS texture first into a single-sample texture and then bind it.