Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
1 answer
4k views

HLSL #pragma once equivalent?

What's the equivalent to C/C++-like #pragma once in HLSL includes? I want (as a contrived example): // ./dependency.hlsl float x() { return 0; } // ./shader.hlsl #include "./dependency.hlsl" // (./ ...
Warty's user avatar
  • 7,385