spec_constant_op_src.spvasm 701 B

123456789101112131415161718
  1. ;; Tests OpSpecConstantOp matching.
  2. OpCapability Shader
  3. OpMemoryModel Logical GLSL450
  4. OpEntryPoint GLCompute %1 "main"
  5. OpExecutionMode %1 LocalSize 1 1 1
  6. %2 = OpTypeVoid
  7. %3 = OpTypeFunction %2
  8. %4 = OpTypeInt 32 0
  9. %5 = OpTypeVector %4 3
  10. %6 = OpConstant %4 1
  11. %7 = OpSpecConstantComposite %5 %6 %6 %6
  12. %8 = OpSpecConstantOp %4 CompositeExtract %7 2
  13. %9 = OpSpecConstantOp %4 CompositeExtract %7 1
  14. %10 = OpSpecConstantOp %4 CompositeExtract %7 0
  15. %1 = OpFunction %2 None %3
  16. %11 = OpLabel
  17. OpReturn
  18. OpFunctionEnd