Skip to content

Commit

Permalink
Fix storage image method restrictions (#455)
Browse files Browse the repository at this point in the history
* Fix storage image method restrictions

* Update textures.rs

* Update textures.rs
  • Loading branch information
XAMPPRocky committed Mar 1, 2021
1 parent 98fb0e0 commit 2034141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/spirv-std/src/textures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl StorageImage2d {
pub fn read<I, V, V2, const N: usize>(&self, coordinate: V) -> V2
where
I: Integer,
V: Vector<I, N>,
V: Vector<I, 2>,
V2: Vector<f32, N>,
{
let mut result = V2::default();
Expand All @@ -92,7 +92,7 @@ impl StorageImage2d {
pub fn write<I, V, V2, const N: usize>(&self, coordinate: V, texels: V2)
where
I: Integer,
V: Vector<I, N>,
V: Vector<I, 2>,
V2: Vector<f32, N>,
{
unsafe {
Expand Down

0 comments on commit 2034141

Please sign in to comment.