KhronosGroup / GLSL

GLSL Shading Language Specification and Extensions
Other
337 stars 98 forks source link

GL_EXT_control_flow_attributes2 #221

Closed wooyoungqcom closed 9 months ago

wooyoungqcom commented 10 months ago

The GLSL extension "GL_EXT_control_flow_attributes" adds attributes to declare how loops should be lowered by a consumer (e.g., unroll and dont_unroll). But not all attributes available in SPIR-V 1.4 are made visible.

The PR is for an extension that adds the attributes missing in the GLSL extension GL_EXT_control_flow_attributes: they are min_iterations, max_iterations, iteration_multiple, peel_count, and partial_count.

Please note that the support for these attributes has already been available in glslangValidator.