-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
133 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@compute @workgroup_size(1) | ||
fn main() { | ||
debugPrintf("%d", 42); | ||
} |
Binary file not shown.
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,28 @@ | ||
; SPIR-V | ||
; Version: 1.1 | ||
; Generator: rspirv | ||
; Bound: 18 | ||
OpCapability Shader | ||
OpCapability Linkage | ||
OpExtension "SPV_KHR_non_semantic_info" | ||
%1 = OpExtInstImport "GLSL.std.450" | ||
%15 = OpExtInstImport "NonSemantic.DebugPrintf" | ||
OpMemoryModel Logical GLSL450 | ||
%13 = OpString "%d" | ||
%16 = OpString "%v4f" | ||
%2 = OpTypeVoid | ||
%5 = OpTypeFunction %2 | ||
%6 = OpTypeInt 32 1 | ||
%7 = OpConstant %6 42 | ||
%8 = OpTypeFloat 32 | ||
%9 = OpConstant %8 3.3 | ||
%10 = OpTypeVector %8 4 | ||
%11 = OpConstantComposite %10 %9 %9 %9 %9 | ||
%4 = OpFunction %2 None %5 | ||
%3 = OpLabel | ||
OpBranch %12 | ||
%12 = OpLabel | ||
%14 = OpExtInst %2 %15 1 %13 %7 | ||
%17 = OpExtInst %2 %15 1 %16 %11 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#version 310 es | ||
#extension GL_EXT_debug_printf : enable | ||
|
||
precision highp float; | ||
precision highp int; | ||
|
||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; | ||
|
||
|
||
void main_1() { | ||
debugPrintfEXT("%d",42); | ||
return; | ||
} | ||
|
||
void main() { | ||
main_1(); | ||
} | ||
|
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,14 @@ | ||
#version 310 es | ||
#extension GL_EXT_debug_printf : enable | ||
|
||
precision highp float; | ||
precision highp int; | ||
|
||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; | ||
|
||
|
||
void main() { | ||
debugPrintfEXT("%d",42); | ||
return; | ||
} | ||
|
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,11 @@ | ||
void main_1() | ||
{ | ||
printf("%d",42); | ||
return; | ||
} | ||
|
||
[numthreads(1, 1, 1)] | ||
void main() | ||
{ | ||
main_1(); | ||
} |
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,12 @@ | ||
( | ||
vertex:[ | ||
], | ||
fragment:[ | ||
], | ||
compute:[ | ||
( | ||
entry_point:"main", | ||
target_profile:"cs_5_1", | ||
), | ||
], | ||
) |
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,23 @@ | ||
; SPIR-V | ||
; Version: 1.1 | ||
; Generator: rspirv | ||
; Bound: 12 | ||
OpCapability Shader | ||
OpExtension "SPV_KHR_non_semantic_info" | ||
%1 = OpExtInstImport "GLSL.std.450" | ||
%11 = OpExtInstImport "NonSemantic.DebugPrintf" | ||
OpMemoryModel Logical GLSL450 | ||
OpEntryPoint GLCompute %4 "main" | ||
OpExecutionMode %4 LocalSize 1 1 1 | ||
%9 = OpString "%d" | ||
%2 = OpTypeVoid | ||
%5 = OpTypeFunction %2 | ||
%6 = OpTypeInt 32 1 | ||
%7 = OpConstant %6 42 | ||
%4 = OpFunction %2 None %5 | ||
%3 = OpLabel | ||
OpBranch %8 | ||
%8 = OpLabel | ||
%10 = OpExtInst %2 %11 1 %9 %7 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
fn main_1() { | ||
debugPrintf("%d",42); | ||
return; | ||
} | ||
|
||
@compute @workgroup_size(1, 1, 1) | ||
fn main() { | ||
main_1(); | ||
} |
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 @@ | ||
@compute @workgroup_size(1, 1, 1) | ||
fn main() { | ||
debugPrintf("%d",42); | ||
return; | ||
} |
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