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
Attempting to use generic functions with more than 1 type causes errors when compiling a slang module with runtime specialization of the component types. I reproduced this with the shader-toy sample by adding unused type parameters to the generic fragment shader function:
The above modifications compile and run in debug mode with v2023.1.1 (similar to #3759), but produces the following error in master.
[GraphicsLayer]: INFO: CreateDevice: Debug layer is enabled.
shader-toy.slang(109): error 38005: expected a type as argument for specialization parameter '4'
float4 fragmentMain<T : IShaderToyImageShader, U : IShaderToyImageShader, V: IShaderToyImageShader>(
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
Attempting to use generic functions with more than 1 type causes errors when compiling a slang module with runtime specialization of the component types. I reproduced this with the
shader-toy
sample by adding unused type parameters to the generic fragment shader function:and duplicating the specialization in the argument list passed to specialize():
The above modifications compile and run in debug mode with v2023.1.1 (similar to #3759), but produces the following error in master.
Thanks
The text was updated successfully, but these errors were encountered: