Dzmitry Malyshau
ba006cfaa7
Rename ColorWrite, TextureUsage, and BufferUsage
2021-06-30 14:57:38 -04:00
Dzmitry Malyshau
568ac3fa24
Switch all bitflag names to plural
2021-06-30 14:43:36 -04:00
Gordon-F
2873ac32d9
Remove MPL 2.0 header in files
2021-06-19 21:06:08 +03:00
Dzmitry Malyshau
c53addac8a
hal/vk: draws and dispatches. Refactor query set descriptor
2021-06-16 14:17:37 -04:00
Dzmitry Malyshau
61e2e242cd
hal/vk: textures and samplers
2021-06-11 19:14:41 -04:00
Dzmitry Malyshau
faf8f7e890
Simple API for coherent mapping
2021-06-10 16:05:44 -04:00
Dzmitry Malyshau
0a82c232ba
hal: port the rest of wgpu-core
2021-06-08 00:46:08 -04:00
Dzmitry Malyshau
6d51fab864
hal:: Fill the command buffer calls
2021-06-08 00:46:08 -04:00
Dzmitry Malyshau
738ae2b227
Surface API
2021-06-08 00:46:08 -04:00
Dzmitry Malyshau
0ea4cac04b
Rework shader and pipeline creation
2021-06-08 00:46:08 -04:00
Dzmitry Malyshau
569cd0cdd6
WIP new wgpu-hal
2021-06-08 00:46:08 -04:00
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
Dzmitry Malyshau
51c7963195
Use the same MissingFeatures error everywhere
2021-05-17 14:20:17 -04:00
Dzmitry Malyshau
92886b4995
Validate filtering samplers at BG creation
2021-04-18 10:25:54 -04:00
Dzmitry Malyshau
c744582052
Update blending API names
2021-04-15 11:25:04 -04:00
Aaron Housh
c820cc8e73
Add Map Alignment type ( #1322 )
...
* Add Map Alignment type
* Fix clippy warnings
* Make buffer_map_async compare range start to MAP_ALIGNMENT
2021-04-12 13:28:46 -04:00
Joshua Groves
9885bdf320
Rename level_count to mip_level_count
...
This follows the naming in the specification, located at
https://gpuweb.github.io/gpuweb/#texture-view-creation
2021-03-24 09:14:30 -02:30
Joshua Groves
306eaf3969
Fix some typos
2021-03-23 01:01:32 -02:30
Connor Fitzgerald
cf6f9c3ca8
Move from tracing to log + profiling
2021-03-17 01:22:30 -04:00
Luca Casonato
82932d1f59
chore: validate offset + size in get_mapped_range ( #1266 )
...
* chore: validate offset + size in get_mapped_range
This commit introduces out of bounds & offset validation for
buffer_get_mapped_range, like described in the WebGPU spec. See
https://gpuweb.github.io/gpuweb/#dom-gpubuffer-getmappedrange .
Closes #818
* review comments
* fmt
* fix test
* fix tests
* update error message
* review comment
* use wgt::BufferAddress
* clippy
2021-03-16 13:00:44 -04:00
Dzmitry Malyshau
62ca24580d
Add limits for textures sizes and vertex imputs
2021-03-01 12:10:40 -05:00
Imbris
c82a3a77d2
Avoid panic when requesting to unmap a buffer that is pending mapping
2021-02-27 17:38:53 -05:00
Dzmitry Malyshau
9bf47dd772
Validate texture bindings
2021-02-15 20:14:23 -05:00
Jakob Hellermann
b89cb21ce3
fix rustdoc warnings
2021-02-12 13:56:51 +01:00
Andreas Reich
5133b0da94
Introduced separate MemoryInitTracker
2021-01-31 21:55:49 +01:00
Andreas Reich
a51b4f9232
buffer zero initialization prior to use in submit
2021-01-31 21:55:49 +01:00
Andreas Reich
875cfb5961
buffers are now zero initialized for mappings
...
queue_write_buffer marks as initialized
2021-01-31 21:55:49 +01:00
Dzmitry Malyshau
618bd9e53a
Handle read-only storage + sampled combination
2021-01-19 09:54:41 -05:00
Connor Fitzgerald
a22037ced0
Add pipeline statistics and timeline queries
2021-01-16 00:48:54 -05:00
Dzmitry Malyshau
a4f897b5d7
Include the extent into the framebuffer map key
2021-01-15 00:53:51 -05:00
Dzmitry Malyshau
012569845d
Update render pass and framebuffers logic to the latest gfx-hal
2021-01-15 00:53:28 -05:00
Andreas Reich
4207e57c02
validation against adapter specific format features
...
TextureFormatFeatures is now a struct of two u32 flags. Query happens only at texture creation time
2020-12-30 10:38:55 +01:00
Connor Fitzgerald
43814d258f
Add format usage descriptions and validate on it.
2020-12-21 23:08:31 -05:00
Connor Fitzgerald
6c6ce2f28c
Validate on empty usages
2020-12-21 17:27:17 -05:00
Dzmitry Malyshau
46b87e220c
Stop using Borrow<RefCount>
2020-11-21 10:38:20 -05:00
Mikko Lehtonen
4498f172cc
Retain labels for resources
...
As a braking api change, adds also label for the error id generation,
for labeling invalid ids too.
Also adds query methods the label.
2020-11-19 00:09:21 +02:00
Dzmitry Malyshau
22efbeae70
Replace gfx-memory by gpu-alloc
2020-11-09 12:16:34 -05:00
Dzmitry Malyshau
5e1e3314cd
Check array layer counts
2020-10-30 17:31:43 -04:00
Connor Fitzgerald
dcc14fe645
Improve cubemap validation
2020-10-25 17:14:14 -04:00
Dzmitry Malyshau
c87a94f976
Early texture destruction
2020-10-08 23:21:11 -04:00
Dzmitry Malyshau
0a7d81351c
Handle cases where buffer contents are destroyed
2020-10-08 12:57:17 -04:00
Dzmitry Malyshau
dc2d581c8d
Add repr(C) on mapping structs
2020-10-06 13:36:17 -04:00
Ben Frankel
2ee07a2a47
Fix invalid mip level count check
2020-09-07 16:49:06 -07:00
Dzmitry Malyshau
35d2ed39b5
Flush staging init buffers
2020-09-02 15:58:32 -04:00
Noah Charlton
d05d1aeec1
Add Quad play test
2020-09-01 16:07:24 -04:00
Dzmitry Malyshau
b8b7561796
Improve texture creation validation
2020-08-24 13:00:34 -04:00
Justin Shrake
19eeee27ee
Add AddressMode::ClampToBorder behind a feature
2020-08-22 13:23:50 -07:00
Dzmitry Malyshau
d1da6d8106
Switch gfx-hal to 0.6
2020-08-17 10:34:50 -04:00
Dzmitry Malyshau
9d8dc0b04d
Grand cleanup and refactor of the descriptors in the API
2020-08-12 14:13:32 -04:00
Dzmitry Malyshau
1f5622a0b3
Respect texture view aspect on creation
2020-08-10 16:14:20 -04:00