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
When writing a compute shader, use void IComputeShader.Execute() instead of public void Execute().
Expected Behavior
The shader should be compiled normally as if public void Execute() is used.
Actual Behavior
The compute shader cannot be compiled. Error reports as follows:
"The DXC compiler encountered one or more errors while trying to compile the shader: "error: expected external declaration [NumThreads(__GroupSize__get_X, __GroupSize__get_Y, __GroupSize__get_Z)] .". Make sure to only be using supported features by checking the README file in the ComputeSharp repository: https://github.com/Sergio0694/ComputeSharp. If you're sure that your C# shader code is valid, please open an issue an include a working repro and this error message."
System info
ComputeSharp 3.0.1
Windows 10
Visual Studio 2022 17.11.4, .NET 8.0
The text was updated successfully, but these errors were encountered:
Reproduction Steps
When writing a compute shader, use
void IComputeShader.Execute()
instead ofpublic void Execute()
.Expected Behavior
The shader should be compiled normally as if
public void Execute()
is used.Actual Behavior
The compute shader cannot be compiled. Error reports as follows:
System info
ComputeSharp 3.0.1
Windows 10
Visual Studio 2022 17.11.4, .NET 8.0
The text was updated successfully, but these errors were encountered: