You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you just need this to compile, or do you also need the initialization to happen? That is, can you use the API to set up the values yourself, and then just want the shader to compile, ignoring the values?
Compiling would be nice for a start. For the initialization a trick would be to use dx11 reflection to get the values and then manually set them at vulkan runtime, but it require some extra work.
A constant buffer declaration with default values will not compile.
/////////////////////
cbuffer Constants
{
float a,b,c;
float d = 1.0f;
};
/* main */
////////////////////
example of error message produced :
ERROR: 0:23: ',' : Expected
ERROR: 0:23: 'struct member declarations' : Expected
(null)(23): error at column 17, HLSL parsing failed.
ERROR: 3 compilation errors. No code generated.
The text was updated successfully, but these errors were encountered: