Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mesh shader tests #132

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/mesh-shader.spv
Binary file not shown.
75 changes: 75 additions & 0 deletions assets/mesh-shader.spv.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"EntryPoint": "main",
"ExecutionModel": "MeshEXT",
"ExecutionModes": [
{
"ExecutionMode": "LocalSizeId",
"Operands": [
{
"Value": "1",
"SpecId": null
},
{
"Value": "1",
"SpecId": null
},
{
"Value": "1",
"SpecId": null
}
]
},
{
"ExecutionMode": "OutputVertices",
"Operands": [
{
"Value": "3",
"SpecId": null
}
]
},
{
"ExecutionMode": "OutputPrimitivesNV",
"Operands": [
{
"Value": "1",
"SpecId": null
}
]
},
{
"ExecutionMode": "OutputTrianglesNV",
"Operands": []
}
],
"Variables": {
"Inputs": [],
"Outputs": [
{
"Name": "out0",
"Location": 0,
"Component": 0,
"Type": {
"Kind": "Array",
"ElementType": "vec4<f32>",
"Count": 3,
"Stride": null
}
},
{
"Name": "out1",
"Location": 1,
"Component": 0,
"Type": {
"Kind": "Array",
"ElementType": "vec4<f32>",
"Count": 1,
"Stride": null
}
}
],
"Descriptors": [],
"PushConstants": [],
"SpecConstants": []
}
}
2 changes: 1 addition & 1 deletion spirq/examples/inspect/main.log
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
collected spirvs: ["gallery.frag", "moon", "spirv-spec.frag"]
collected spirvs: ["gallery.frag", "mesh-shader", "moon", "spirv-spec.frag"]
entered function main
found a store instruction
found a load instruction
Expand Down
2 changes: 1 addition & 1 deletion spirq/examples/walk/main.log
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
collected spirvs: ["gallery.frag", "moon", "spirv-spec.frag"]
collected spirvs: ["gallery.frag", "mesh-shader", "moon", "spirv-spec.frag"]
[main { exec_model: Fragment, name: "main", vars: [Descriptor { name: None, desc_bind: (set=0, bind=0), desc_ty: UniformBuffer, ty: Struct(StructType { name: Some("blockName"), members: [StructMember { name: Some("s"), offset: Some(0), ty: Struct(StructType { name: Some("S"), members: [StructMember { name: Some("b"), offset: Some(0), ty: Scalar(Integer { bits: 32, is_signed: false }), access_ty: ReadWrite }, StructMember { name: Some("v"), offset: Some(16), ty: Array(ArrayType { element_ty: Vector(VectorType { scalar_ty: Float { bits: 32 }, nscalar: 4 }), nelement: Some(5), stride: Some(16) }), access_ty: ReadWrite }, StructMember { name: Some("i"), offset: Some(96), ty: Scalar(Integer { bits: 32, is_signed: true }), access_ty: ReadWrite }] }), access_ty: ReadWrite }, StructMember { name: Some("cond"), offset: Some(112), ty: Scalar(Integer { bits: 32, is_signed: false }), access_ty: ReadWrite }] }), nbind: 1 }, Output { name: Some("color"), location: (loc=0, comp=0), ty: Vector(VectorType { scalar_ty: Float { bits: 32 }, nscalar: 4 }) }, Input { name: Some("color1"), location: (loc=0, comp=0), ty: Vector(VectorType { scalar_ty: Float { bits: 32 }, nscalar: 4 }) }, Input { name: Some("color2"), location: (loc=2, comp=0), ty: Vector(VectorType { scalar_ty: Float { bits: 32 }, nscalar: 4 }) }, Input { name: Some("multiplier"), location: (loc=1, comp=0), ty: Vector(VectorType { scalar_ty: Float { bits: 32 }, nscalar: 4 }) }], exec_modes: [ExecutionMode { exec_mode: OriginUpperLeft, operands: [] }] }]
Descriptor { name: None, desc_bind: (set=0, bind=0), desc_ty: UniformBuffer, ty: Struct(StructType { name: Some("blockName"), members: [StructMember { name: Some("s"), offset: Some(0), ty: Struct(StructType { name: Some("S"), members: [StructMember { name: Some("b"), offset: Some(0), ty: Scalar(Integer { bits: 32, is_signed: false }), access_ty: ReadWrite }, StructMember { name: Some("v"), offset: Some(16), ty: Array(ArrayType { element_ty: Vector(VectorType { scalar_ty: Float { bits: 32 }, nscalar: 4 }), nelement: Some(5), stride: Some(16) }), access_ty: ReadWrite }, StructMember { name: Some("i"), offset: Some(96), ty: Scalar(Integer { bits: 32, is_signed: true }), access_ty: ReadWrite }] }), access_ty: ReadWrite }, StructMember { name: Some("cond"), offset: Some(112), ty: Scalar(Integer { bits: 32, is_signed: false }), access_ty: ReadWrite }] }), nbind: 1 }
- MemberVariableRouting { sym: [s, b], offset: 0, ty: Scalar(Integer { bits: 32, is_signed: false }) }
Expand Down
Loading