runtime: the resolve test grants the index its texture over a buffer takes
A texture is made at an index of a live grant of its class; the test's ShaderRead texture over a Shared buffer took the class's first index ungranted. It grants that index first, as the other texture-over-buffer tests do.
This commit is contained in:
1 parent
f473ccdb72
commit
1cfbe54593
1 file changed
+3
-1
@@ -667,7 +667,9 @@ mod on_device {
|
||||
.unwrap_or_else(|error| panic!("{name}: {error}"));
|
||||
let mut td = TextureDescriptor::new(TextureType::Type2D, format, SIDE, SIDE);
|
||||
td.usage = TextureUsage::SHADER_READ;
|
||||
let index = Some(IndexClass::Texture.range().start);
|
||||
let first = IndexClass::Texture.range().start;
|
||||
(device.grant_indices(IndexClass::Texture, first, 1)).expect("a grant");
|
||||
let index = Some(first);
|
||||
let over = (buffer.new_texture(&td, index, 0, pitch))
|
||||
.unwrap_or_else(|error| panic!("{name}: {error}"));
|
||||
if over.copied_over().is_some() {
|
||||
|
||||
Reference in new issue
Block a user