All Questions
1 question
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" // (./ ...