Skip to content

Commit d1e5ea2

Browse files
committed
grammar: Handle TypeCooperativeMatrixKHR as type
Without this shaders with cooperative matrix types fail to parse.
1 parent 975dab2 commit d1e5ea2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

rspirv/grammar/reflect.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ pub fn is_type(opcode: spirv::Op) -> bool {
6666
| spirv::Op::TypeAccelerationStructureKHR
6767
| spirv::Op::TypeRayQueryKHR
6868
| spirv::Op::TypeForwardPointer
69+
| spirv::Op::TypeCooperativeMatrixKHR
6970
)
7071
}
7172

rspirv/lift/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl From<OperandError> for InstructionError {
6464
}
6565
}
6666

67-
/// Error that may occur during the convesion from the data representation
67+
/// Error that may occur during the conversion from the data representation
6868
/// of a module into a structured representation.
6969
#[derive(Clone, Debug)]
7070
pub enum ConversionError {
@@ -154,6 +154,11 @@ impl LiftContext {
154154
};
155155
}
156156
}
157+
spirv::Op::FunctionCall => {
158+
let op = context.lift_function_call(inst)?;
159+
dbg!(&op);
160+
// TODO: Add as function call?
161+
}
157162
_ => {
158163
if let Some(id) = inst.result_id {
159164
let op = context.lift_op(inst)?;

0 commit comments

Comments
 (0)