Dzmitry Malyshau
75b885b0ca
hal/gles: support externally initialized contexts
2022-01-04 00:23:47 -05:00
Dzmitry Malyshau
18f644e19b
hal: check for surface caps in the example ( #2298 )
2021-12-16 21:41:45 +00:00
Dzmitry Malyshau
3960658529
Remove block decorations ( #2292 )
2021-12-15 12:29:37 -05:00
Dzmitry Malyshau
9bbea3d348
Update naga to c69f676
2021-12-04 12:46:49 -05:00
Layl
2ef72b9313
Add multiview support ( #2187 )
...
Co-authored-by: Layl Bongers <2385329-layl@users.noreply.gitlab.com>
2021-11-19 10:56:48 -05:00
Boris-Chengbiao Zhou
3545a4fdd5
Introduce SamplerBindingType enum and fix bug in validation ( #2181 )
...
* Introduce SamplerBindingType enum and fix bug in validation
This matches the WebGPU spec more closely and also lets us implement the
validation as it's written in the spec[1]. This fixes a bug which
previously prevented the "shadow" example from running in Firefox.
Previously the validation would check whether the filtering was
appropiate even if it was a comparison sampler. This didn't matter when
running the shadow example natively since the example was setting
`filtering: true` in addition to `comparison: true`. But this failed
when running through a browser since there the used WebIDL has the
proper enum representation and eventually resulted in `filtering: false`
being passed to wgpu-core which would then fail validation.[2]
[1]: https://gpuweb.github.io/gpuweb/#bind-group-creation
[2]: 674b6582ba/dom/webgpu/ipc/WebGPUChild.cpp (L502-L513)
* Fix remaining examples
* Fix deno_webgpu
2021-11-16 23:08:03 -05:00
Connor Fitzgerald
b679342d9e
Support descriptor arrays shorter than binding length
2021-09-30 14:11:51 -04:00
João Capucho
9bc5908492
Add method to create shader modules without runtime checks ( #1978 )
...
* Add method to create shader modules without runtime checks
* Use opaque struct to represent shader bound checks
2021-09-27 19:51:44 +00:00
Luke Street
76bcd9c494
Implement min_{uniform,storage}_buffer_offset_alignment limits ( #1923 )
...
* Implement min_{uniform,storage}_buffer_offset_alignment limits
* Add Limits::using_alignment
* Update docs & examples
* Create binding_model::buffer_binding_type_alignment fn
2021-09-08 13:53:02 -04:00
Dzmitry Malyshau
552a5f138e
Rename texture usage names
2021-07-28 00:17:54 -04:00
Dzmitry Malyshau
69f808c54a
hal/dx12: support base vertex/instance
2021-07-27 08:59:41 -04:00
Dzmitry Malyshau
5419947095
hal/vk: relay semaphore
2021-07-16 17:55:03 -04:00
Dzmitry Malyshau
00859b9e0c
Stop using render pass boundary usages for resource transitions
2021-07-13 01:02:42 -04:00
Dzmitry Malyshau
35ee65707f
hal: make copy to work on one array layer at a time
2021-07-13 01:01:26 -04:00
Dzmitry Malyshau
04ca3212de
hal/dx12: intercept debug output
2021-07-13 01:01:22 -04:00
Dzmitry Malyshau
497c6647ee
hal/vulkan: fix instance destruction logic
2021-07-03 01:07:21 -04:00
Dzmitry Malyshau
b15f1ebfb7
halmark: fix the command pool recycling policy
2021-07-03 00:23:11 -04:00
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
Dzmitry Malyshau
8fd6b36e6c
hal/egl: add coherence preference, hook up EGL_KHR_debug message callbacks
2021-06-30 02:29:28 -04:00
Dzmitry Malyshau
51dd90b1ab
hal/gles: render passes
2021-06-30 02:29:27 -04:00
Dzmitry Malyshau
41bc9d0625
hal/gl: start the backend, port the Instance
2021-06-30 02:29:25 -04:00
Dzmitry Malyshau
36939477c5
Test wgpu-rs more on CI
2021-06-22 17:23:32 -04:00
Alex S
8bfa949261
Code review:
...
- rename ShaderInput variants
- rename feature flag
- hard error on Metal backend trying to compile SPIR-V
- fix test failing because of feature flag bits changing
2021-06-20 06:22:59 +03:00
Alex S
6d2e6e5a56
Add Naga bypass to allow feeding raw SPIR-V shader data to the backend.
...
While Naga checking is undoubtedly very useful, it currently lags behind
what is possible in SPIR-V and even what is promised by WGPU (ie binding
arrays). This adds an unsafe method to wgpu::Device to allow feeding
raw SPIR-V data into the backend, and adds a feature flag to request a
backend supporting this operation.
2021-06-19 23:32:44 +03:00
Dzmitry Malyshau
e21e9c838c
halmark: change instance flags
2021-06-17 21:10:13 -04:00
Dzmitry Malyshau
7c61fa481f
Refactor halmark example to properly recycle command pools
2021-06-17 21:03:57 -04:00
Dzmitry Malyshau
7410b700d6
fix swapchain recycling, copies, device destruction, RODS
2021-06-16 23:18:50 -04:00
Dzmitry Malyshau
fb662dfbec
hal/vk: polishing to run halmark with no validation issues
2021-06-16 17:15:34 -04:00
Dzmitry Malyshau
00de15990e
hal/vk: pipeline creation
2021-06-15 01:24:25 -04:00
Dzmitry Malyshau
9d85602349
hal: re-architect command encoding and pooling
2021-06-14 13:30:28 -04:00
Dzmitry Malyshau
c2bb2d5dfc
Experimental command pool API
2021-06-14 01:58:09 -04:00
Dzmitry Malyshau
4eae5a38d0
hal/vk: hook up gpu-descriptor
2021-06-12 01:04:15 -04:00
Dzmitry Malyshau
e345ad1c64
hal: make example to destroy temporary views
2021-06-10 16:55:17 -04:00
Dzmitry Malyshau
faf8f7e890
Simple API for coherent mapping
2021-06-10 16:05:44 -04:00
Dzmitry Malyshau
317237771e
hal: rename bunnymark to halmark
2021-06-10 11:29:35 -04:00
Dzmitry Malyshau
782c72d32c
hal/mtl: queue
2021-06-10 10:54:06 -04:00
Dzmitry Malyshau
6d229847be
hal: redesign the bind group descriptor
2021-06-08 17:12:28 -04:00
Dzmitry Malyshau
a0b51ce35c
hal: remove the cows
2021-06-08 15:18:06 -04:00
Dzmitry Malyshau
502c57501f
hal: bunnymark example
2021-06-08 14:58:48 -04:00