
What are some good resources for learning HLSL? [closed]
The last time I tried learning HLSL, I made a few shaders and mostly understood what I was doing, but I still felt like I was stumbling in the dark. Most of what I learned I got from various blog p...
hlsl - Computing pixel's screen position in a vertex shader: right or ...
As you are using hlsl I presume you use DirectX. You can use the input semantic VPOS (DX9) or SV_Position (DX>=10): MSDN - VPOS & SV_POSITION semantics When you pass the render …
What does ddx (hlsl) actually do? - Game Development Stack Exchange
What does ddx (hlsl) actually do? Ask Question Asked 12 years, 4 months ago Modified 7 years ago
What are the pros and cons of HLSL vs GLSL vs cg? [closed]
HLSL if you're going exclusively on Microsoft platforms. Now first developping in HLSL for windows to use DirectX and then convert to GLSL for linux and mac could be the better solution to be sure of …
What are registers in HLSL for? - Game Development Stack Exchange
A given shader model exposes a particular set of registers to HLSL; these registers are underlying hardware registers on the GPU, like CPU registers, but have more refined scopes (for example, …
HLSL registers and slots - Game Development Stack Exchange
May 14, 2018 · I'm learning DirectX11 and since I'm beginning to write some shader code I don't understand the difference between binding slots and HLSL registers. The shader model 5.0 …
Blending/gradient/smoothing between textures in Texture2DArray in …
Jun 28, 2024 · Blending/gradient/smoothing between textures in Texture2DArray in HLSL shader Ask Question Asked 1 year, 7 months ago Modified 1 year, 7 months ago
What are screen space derivatives and when would I use them?
Oct 3, 2016 · 28 I see the ddx and ddy glsl functions and the hlsl equivalents come up in shader code every now and then. I'm currently using them to do bump mapping without a tangent or bitangent but …
How to calculate the world position of pixels in an HLSL script?
May 26, 2023 · Why are you multiplying by the object-to-world matrix twice, once in the vertex shader, and again in the fragment shader?
How to sample a TextureCube texture - Game Development Stack …
Apr 13, 2021 · In the old code I would declare a generic texture in HLSL and create a samplerCube to do the sampling. Then I would use the intrinsic texCube function to actual sample in the direction of …