Files
wgpu/player/tests/data/buffer-clear.ron
Wumpf f62d0d5edc Native Extension: Expose fill buffer & clear image (#1335)
* Add command buffer fill buffer method

* Added test for buffer fill

* Added image clear + test

* image/buffer clear methods are now pure clear to zero

* fix cargo clippy & int type issues

* clear buffer alignment is now given by COPY_BUFFER_ALIGNMENT

* joined buffer/image clear player tests

* ImageSubresourceRange is now used in TextureViewDescriptor
2021-05-30 11:03:33 -04:00

37 lines
840 B
Plaintext

(
features: (bits: 0x0000_0001_0000_0000),
expectations: [
(
name: "basic",
buffer: (index: 0, epoch: 1),
offset: 0,
data: Raw([
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
]),
)
],
actions: [
CreateBuffer(
Id(0, 1, Empty),
(
label: None,
size: 16,
usage: (
bits: 41,
),
mapped_at_creation: false,
),
),
Submit(1, [
ClearBuffer(
dst: Id(0, 1, Empty),
offset: 4,
size: Some(8),
)
]),
],
)