This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spv-out: support version 1.4 (#2230)
* spv-out: support version 1.4 * Extract SPV version numner from the comment
- Loading branch information
Showing
7 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
( | ||
spv: ( | ||
version: (1, 4), | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@group(0) @binding(0) var u_texture : texture_2d<f32>; | ||
@group(0) @binding(1) var u_sampler : sampler; | ||
|
||
@fragment | ||
fn main(@location(0) uv : vec2<f32>) -> @location(0) vec4<f32> { | ||
return textureSample(u_texture, u_sampler, uv); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
; SPIR-V | ||
; Version: 1.4 | ||
; Generator: rspirv | ||
; Bound: 26 | ||
OpCapability Shader | ||
%1 = OpExtInstImport "GLSL.std.450" | ||
OpMemoryModel Logical GLSL450 | ||
OpEntryPoint Fragment %18 "main" %13 %16 %8 %10 | ||
OpExecutionMode %18 OriginUpperLeft | ||
OpDecorate %8 DescriptorSet 0 | ||
OpDecorate %8 Binding 0 | ||
OpDecorate %10 DescriptorSet 0 | ||
OpDecorate %10 Binding 1 | ||
OpDecorate %13 Location 0 | ||
OpDecorate %16 Location 0 | ||
%2 = OpTypeVoid | ||
%4 = OpTypeFloat 32 | ||
%3 = OpTypeImage %4 2D 0 0 0 1 Unknown | ||
%5 = OpTypeSampler | ||
%6 = OpTypeVector %4 2 | ||
%7 = OpTypeVector %4 4 | ||
%9 = OpTypePointer UniformConstant %3 | ||
%8 = OpVariable %9 UniformConstant | ||
%11 = OpTypePointer UniformConstant %5 | ||
%10 = OpVariable %11 UniformConstant | ||
%14 = OpTypePointer Input %6 | ||
%13 = OpVariable %14 Input | ||
%17 = OpTypePointer Output %7 | ||
%16 = OpVariable %17 Output | ||
%19 = OpTypeFunction %2 | ||
%23 = OpTypeSampledImage %3 | ||
%18 = OpFunction %2 None %19 | ||
%12 = OpLabel | ||
%15 = OpLoad %6 %13 | ||
%20 = OpLoad %3 %8 | ||
%21 = OpLoad %5 %10 | ||
OpBranch %22 | ||
%22 = OpLabel | ||
%24 = OpSampledImage %23 %20 %21 | ||
%25 = OpImageSampleImplicitLod %7 %24 %15 | ||
OpStore %16 %25 | ||
OpReturn | ||
OpFunctionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters