Skip to content

Vulkan Compatibility #1610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
25 of 38 tasks
msiglreith opened this issue Oct 25, 2017 · 0 comments
Open
25 of 38 tasks

Vulkan Compatibility #1610

msiglreith opened this issue Oct 25, 2017 · 0 comments

Comments

@msiglreith
Copy link
Contributor

msiglreith commented Oct 25, 2017

Meta issue about the current missing features of gfx-rs compared to Vulkan (Core) API:

@msiglreith msiglreith added this to the Vulkan Portability MVP milestone Oct 25, 2017
bors bot added a commit that referenced this issue Oct 29, 2017
1618: hal: Custom queue priorities r=kvark a=msiglreith

Small feature to allow setting queue priorities on device creation. Only used for vulkan and mainly for portability.

cc #1610
bors bot added a commit that referenced this issue Oct 31, 2017
1620: Pipeline deriving r=kvark a=msiglreith

- Add support for deriving pipelines from other pipelines as supported in Vulkan.
- Additional pipeline flag (ie disable optimizations)
- Refactor pipeline descriptors a bit for compute and graphics

Only HAL and Vulkan implemented so far, others require a few adjustment due to the new API.

cc #1610
bors bot added a commit that referenced this issue Dec 9, 2018
2499: Add queue family resource ownership transfer to memory barriers for Vulkan r=msiglreith a=termhn

~~This is untested so far because I am not currently at a computer with Vulkan to test on... seems simple enough though.~~

Related to #1610, #1498

cc @omni-viral 

PR checklist:
- [ ] `make` succeeds (on *nix)
- [ ] `make reftests` succeeds
- [x] tested examples with the following backends: vulkan, dx12, (no changes for metal)
- [ ] `rustfmt` run on changed code


Co-authored-by: Gray Olson <[email protected]>
bors bot added a commit that referenced this issue Mar 3, 2021
3521: Sparse (tiled) resources for Vulkan and DirectX 12 r=kvark a=deprilula28

Progress in implementing sparse resources, listed on issue #1610

This PR adds the following:
- A `bind_sparse` method in CommandQueue based on `submit`.
- A Vulkan implementation for `bind_sparse`, making a [vkQueueBindSparse](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkQueueBindSparse.html) call.
- A DirectX12 implementation for `bind_sparse` for images, creating a virtual resource with [CreateReservedResource](https://docs.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12device-createreservedresource) if unbound and mapping it to memory with [UpdateTileMappings](https://docs.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12commandqueue-updatetilemappings).
- `SPARSE_BINDING`, `SPARSE_RESIDENCY` and `SPARSE_ALIASED` view capabilities when creating images. Also sets the texture layout to `D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE` when creating images on DX12.
- A `sparselybound` feature on the `quad` example which binds the logo texture using `bind_sparse` instead of `bind_image_memory`.

Remaining additions:
- [ ] DirectX 11 implementation.
- [ ] Buffer and opaque textures in the DirectX 12 implementation.
- [ ] Setting sparse flags in buffer resources. (This will have to be a breaking change or a different buffer create method)

PR checklist:
- [x] `make` succeeds (on *nix)
- [x] `make reftests` succeeds
- [x] tested examples with the following backends: Vulkan, DirectX 12, DirectX 11


Co-authored-by: deprilula28 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants