Shader linking i guess
This commit is contained in:
@@ -16,15 +16,37 @@
|
||||
#endif
|
||||
|
||||
#ifdef RAY_SHADER
|
||||
#define RAY using namespace RAYShader; namespace RAYShader
|
||||
#define RAY using namespace RayShader; namespace RayShader
|
||||
#else
|
||||
#define RAY namespace RAYShader_DO_NOT_USE
|
||||
#define RAY namespace RayShader_DO_NOT_USE
|
||||
#endif
|
||||
|
||||
#ifdef BRDF_SHADER
|
||||
#define BRDF using namespace BRDFShader; namespace BRDFShader
|
||||
#ifdef CALLABLE_SHADER
|
||||
#define CALLABLE using namespace CallableShader; namespace CallableShader
|
||||
#else
|
||||
#define BRDF namespace BRDFShader_DO_NOT_USE
|
||||
#define CALLABLE namespace CallableShader_DO_NOT_USE
|
||||
#endif
|
||||
|
||||
float4 Test()
|
||||
{
|
||||
return float4(1,0.5,1,1);
|
||||
}
|
||||
|
||||
#ifndef USE_CALLABLE_SHADERS
|
||||
#define USE_CALLABLE_SHADERS
|
||||
#endif
|
||||
|
||||
struct RunShaderResult_t<A>
|
||||
{
|
||||
A val;
|
||||
|
||||
};
|
||||
|
||||
[noinline]
|
||||
[builtin]
|
||||
RunShaderResult_t<A> RunShader<A, B>( uint32_t id, B data ) where optional B
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user