| ... | @@ -97,7 +97,7 @@ pub fn specConst(T: type, comptime default_value: T, comptime spec_id: u32) T { | ... | @@ -97,7 +97,7 @@ pub fn specConst(T: type, comptime default_value: T, comptime spec_id: u32) T { |
| 97 | }, | 97 | }, |
| 98 | .int, .float => return asm ( | 98 | .int, .float => return asm ( |
| 99 | \\%ret = OpSpecConstant %ty $default_value | 99 | \\%ret = OpSpecConstant %ty $default_value |
| 100 | \\ OpDecorate %ret SpecId $spec_id" | 100 | \\ OpDecorate %ret SpecId $spec_id |
| 101 | : [ret] "" (-> T), | 101 | : [ret] "" (-> T), |
| 102 | : [ty] "t" (T), | 102 | : [ty] "t" (T), |
| 103 | [default_value] "c" (default_value), | 103 | [default_value] "c" (default_value), |