Skip to content

Commit 2034141

Browse files
authored
Fix storage image method restrictions (#455)
* Fix storage image method restrictions * Update textures.rs * Update textures.rs
1 parent 98fb0e0 commit 2034141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/spirv-std/src/textures.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl StorageImage2d {
6767
pub fn read<I, V, V2, const N: usize>(&self, coordinate: V) -> V2
6868
where
6969
I: Integer,
70-
V: Vector<I, N>,
70+
V: Vector<I, 2>,
7171
V2: Vector<f32, N>,
7272
{
7373
let mut result = V2::default();
@@ -92,7 +92,7 @@ impl StorageImage2d {
9292
pub fn write<I, V, V2, const N: usize>(&self, coordinate: V, texels: V2)
9393
where
9494
I: Integer,
95-
V: Vector<I, N>,
95+
V: Vector<I, 2>,
9696
V2: Vector<f32, N>,
9797
{
9898
unsafe {

0 commit comments

Comments
 (0)