Skip to main content

Questions tagged [sampler-state]

Filter by
Sorted by
Tagged with
0 votes
0 answers
87 views

I'm interested in how to fix my OpenGL source code so that there is a blocky appearance to the textures - without antialiasing and multisampling, as it was in MS-DOS games. For example, I want the ...
black4joss's user avatar
0 votes
1 answer
496 views

I'm on the way to add HiZ to my SSR protocol as explained here I would like to use generatemip, but can't find how to select sampled pixels based on a min value ...
philB's user avatar
  • 333
1 vote
1 answer
356 views

Copied from Computer Graphics SE. I am implementing a post-processing effect in my DirectX 11 pet renderer. The post-processing pass is implemented by rendering a full-screen quad covered with texture ...
ivokabel's user avatar
  • 113
0 votes
1 answer
1k views

I'm converting an old XNA title to MonoGame and one of the HLSL fx files uses two textures. But no matter what I do, it only ever uses the screen texture while rendering the effect in MonoGame, or ...
Xavier Lebec's user avatar
1 vote
1 answer
2k views

I'm facing in problem in HLSL with Monogame that I can't figure out. The gist is that sampling from a texture seems to always return white rather than the texture's actual color. My pixel shader code ...
Grimelios's user avatar
  • 589
4 votes
0 answers
1k views

I'm experimenting a strange behaviour of textures inside my shaders. Basically I need and bind two cubemap textures inside my shader but only one gets actually bound. I've tried swapping the two ...
zeb's user avatar
  • 263
2 votes
1 answer
2k views

I don't understand this error. The full output being : The Pixel Shader unit expects a Sampler configured for default filtering to be set at Slot 0, but the sampler bound at this slot is ...
PinkTurtle's user avatar
0 votes
0 answers
428 views

I am working on simple parallax shader and I have problem with sampling height texture for value. My aproach amples texture and give me RGB values of picture: ...
Kacper Kleczewski's user avatar
0 votes
2 answers
7k views

I am shadow mapping in Direct3D 9. I'm trying to avoid rendering depth to a 32-bit render target. So, I've created a depth/stencil texture( a texture w/usage Depth/Stencil ). When I render I do this: ...
P. Avery's user avatar
  • 575
1 vote
1 answer
2k views

The shader must switch between multiple textures depending on the Alpha value of the original texture for each pixel. Now this would word fine if I didn't have to worry about SamplerStates. I have ...
Nathan's user avatar
  • 145
0 votes
1 answer
306 views

I'm using a combination of sprite sheets for well, sprites and individual textures for infinite tiling. For the tiling textures I'm obviously using Wrap to draw the entire surface in one call but up ...
David's user avatar
  • 101
2 votes
2 answers
2k views

If I want to set explicitly every parameter of the structure I just do so and that's it. But what if I want to set only some of them and leave the rest with default values? I've seen in some tutorial ...
NPS's user avatar
  • 2,334