Questions tagged [hlsl]

HLSL is the High-Level Shading Language, used to author shaders for use with Direct3D, and cross-compilable to SPIR-V. Use this tag for questions which are specifically about shaders written in this language. For generic shader questions use [shader] instead.

HLSL is the High-Level Shading Language, used to author shaders for use with Direct3D, and cross-compilable to SPIR-V. Use this tag for questions which are specifically about shaders written in this language. For generic shader questions use [shader] instead.

65 questions
3
votes
1 answer

How to pass a 2D array to a function

How do you allow a function to accept a reference of a double array ? For example: MyFunc(uint x, uint y, float2[][] myArray) {} I get unexpected [ error does it allow reference passes like this? I am trying to pass this to my function: float2…
wduk
  • 177
  • 1
  • 6
1
vote
2 answers

What is a tbuffer and what is their use case?

In HLSL, we have cbuffers and tbuffers. MSDN's description for tbuffers is the following: A texture buffer is a specialized buffer resource that is accessed like a texture. Texture access (as compared with buffer access) can have better performance…
user11739