mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-21 22:34:34 +00:00
#[spirv(uniform)]
is actually immutable in the absence of BufferBlock
. (#558)
This commit is contained in:
parent
820573a21f
commit
0e7fdb30f2
@ -246,6 +246,7 @@ impl<'tcx> CodegenCx<'tcx> {
|
||||
let expected_mutbl = match storage_class {
|
||||
StorageClass::UniformConstant
|
||||
| StorageClass::Input
|
||||
| StorageClass::Uniform
|
||||
| StorageClass::PushConstant => hir::Mutability::Not,
|
||||
|
||||
_ => hir::Mutability::Mut,
|
||||
|
@ -463,7 +463,7 @@ fn index_user_dst() {
|
||||
r#"
|
||||
#[spirv(fragment)]
|
||||
pub fn main(
|
||||
#[spirv(uniform, descriptor_set = 0, binding = 0)] slice: &mut SliceF32,
|
||||
#[spirv(uniform, descriptor_set = 0, binding = 0)] slice: &SliceF32,
|
||||
) {
|
||||
let float: f32 = slice.rta[0];
|
||||
let _ = float;
|
||||
|
Loading…
Reference in New Issue
Block a user