Can I bind multisample texture to a shader variable? #172
-
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 |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.