Specialization constant conversion to float
is disallowed by VkGLSL spec, but is used in an example.
#169
Labels
Vulkan
Functionality applies to Vulkan API
The GL_KHR_vulkan_glsl specification states that you cannot do a specialization constant conversion from an integer type to a floating-point type. It states this by omission, as the "Specialization Constant Operations" section lists the allowable operations on a specialization constant (that still yields a specialization constant). And while integer-to-integer conversions are allowed, conversions between integers and floats are disallowed.
However, the spec also has this example:
This performs implicit conversions from
scX
andscZ
to floating-point types, which is not permitted. As such, this should useivec3
instead ofvec3
.The text was updated successfully, but these errors were encountered: