-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed as not planned
Labels
nagaShader TranslatorShader Translator
Description
Description
I think that there's a bug in the naga/src/proc/typifier.rs
. Notably, when casting with As
the new scalar kind, variable kind
, is not propagated to the output scalar
, only the width
.
Ti::Matrix {
columns,
rows,
mut scalar,
} => {
if let Some(width) = convert {
scalar.width = width;
}
TypeResolution::Value(Ti::Matrix {
columns,
rows,
scalar,
})
}
Note a correct behavior on vectors where the kind is propagated to the generated vector:
Ti::Vector {
size,
scalar: crate::Scalar { kind: _, width },
} => TypeResolution::Value(Ti::Vector {
size,
scalar: crate::Scalar {
kind,
width: convert.unwrap_or(width),
},
}),
Source:
wgpu/naga/src/proc/typifier.rs
Lines 881 to 884 in f669024
TypeResolution::Value(Ti::Matrix { | |
columns, | |
rows, | |
scalar, |
Metadata
Metadata
Assignees
Labels
nagaShader TranslatorShader Translator
Type
Projects
Status
Done