About 51 results
Open links in new tab
  1. 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...

  2. 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 …

  3. What does ddx (hlsl) actually do? - Game Development Stack Exchange

    What does ddx (hlsl) actually do? Ask Question Asked 12 years, 3 months ago Modified 6 years, 11 months ago

  4. Why does Unity use HLSL instead of GLSL?

    Apr 16, 2017 · Also DirectX is windows only API & HLSL is the shader programming language for DirectX. However, Unity3D for OSX is written in OpenGL. OpenGL uses a standard shader …

  5. 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, …

  6. 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 …

  7. 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 …

  8. Specifying a root signature in the HLSL code of a DXR shader

    Apr 1, 2021 · I've noticed that I cannot specify a root signature in the HLSL code of a DXR shader. For example, if I got a ray generation shader with the following declaration [rootsignature( "RootFlags(

  9. 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?

  10. 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 …