Skip to main content
GameDev.net gamedev.net
🔒 Locked

What are the valid hlsl sampler state values?

Started by Narf the Mouse Oct 28, 2012 at 2:28 AM 1 replies 2.9k views
Original Post
Narf the Mouse
Narf the Mouse
Does Microsoft even document them? Cannot find them.

Thanks.

Edit: To clarify, what can I put in sampler state filter, addressU/V, etc. - What are the valid values for each sampler state variable, or where can I find them? (Plus an explanation)
Nik02
Nik02
See the topic "Sampler Type (DirectX HLSL)" in the documentation. Quoting:

"The right side of each expression is the value assigned to each state. See the D3D10_SAMPLER_DESC structure for the possible state values for Direct3D 10. There is a 1 to 1 relationship between the state names and the members of the structure."

D3D9 and later differ in the fact that later API versions logically separate samplers and textures (so that you can use one sampler state for many textures or vice versa), whereas in D3D9 instances of a texture and a sampler state are tightly coupled.
Niko Suni
Narf the Mouse
Narf the Mouse

See the topic "Sampler Type (DirectX HLSL)" in the documentation. Quoting:

"The right side of each expression is the value assigned to each state. See the D3D10_SAMPLER_DESC structure for the possible state values for Direct3D 10. There is a 1 to 1 relationship between the state names and the members of the structure."

D3D9 and later differ in the fact that later API versions logically separate samplers and textures (so that you can use one sampler state for many textures or vice versa), whereas in D3D9 instances of a texture and a sampler state are tightly coupled.

Thank you. I spent most of yesterday trying to compact my terrain vertices down to a single index value, and the only remaining problem seems to have to do with the texture heightmap I'm using to generate data for the pixel shader.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.