It appears that Slang does not support a class data structure? I couldn't find an example of a class in the tests. When I try to compile the shader below, I get this error:
(0): error 99999: Slang compilation aborted due to an exception of class Slang::InternalError: unimplemented: Unhandled global inst in spirv-emit:
[export(%1)]
[nameHint(%2)]
class %S : %3
{
field(%a, %4)
}
class is reserved for further cpu/host side logic, and represents a reference counted, heap allocated object. It is invalid to use classes for gpu code.
It appears that Slang does not support a
class
data structure? I couldn't find an example of aclass
in the tests. When I try to compile the shader below, I get this error:CMD:
If
class
isn't supported and the user is meant to usestruct
, can we document this instead of leaving it as an exercise for the the user?Shader