Skip to content

Add image cube array feature.#877

Merged
bors[bot] merged 1 commit intogfx-rs:masterfrom
StarArawn:add-image-cube-array
Aug 17, 2020
Merged

Add image cube array feature.#877
bors[bot] merged 1 commit intogfx-rs:masterfrom
StarArawn:add-image-cube-array

Conversation

@StarArawn
Copy link
Copy Markdown
Contributor

@StarArawn StarArawn commented Aug 15, 2020

Connections
None

Description
Enable IMAGE_CUBE_ARRAY in vulkan and dx12. Note: Currently this will cause metal to break as the available_features from the physical device will never include IMAGE_CUBE_ARRAY. Thus I'm opening this as a draft until gfx-hal metal can check and pass the feature on.

Testing

I can test this with my repo using wgpu-rs here which uses cube arrays:
https://github.com/StarArawn/harmony/

Copy link
Copy Markdown
Contributor

@monocodus monocodus bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an autogenerated code review.

Checker summary (by rust_clippy):
The tool has found 0 warnings, 1 errors.

Copy link
Copy Markdown
Contributor

@monocodus monocodus bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an autogenerated code review.

Checker summary (by rust_clippy):
The tool has found 0 warnings, 1 errors.

@kvark
Copy link
Copy Markdown
Member

kvark commented Aug 15, 2020

this will cause metal to break as the

I don't understand this. Please clarify. If Metal backend doesn't expose this feature, you can't enable it in wgpu and thus you can't break anything.

Oh I see, you are trying to enable it by default, and the result is ignored.

Does Metal backend not work?

@StarArawn
Copy link
Copy Markdown
Contributor Author

@kvark
Ahh, sorry I mean if you use metal it will falsely warn about the feature not being available when it actually is.

@kvark
Copy link
Copy Markdown
Member

kvark commented Aug 15, 2020

ok, lemme fix that in Metal for gfx-0.6 release

@StarArawn StarArawn marked this pull request as ready for review August 15, 2020 16:04
bors bot added a commit to gfx-rs/gfx that referenced this pull request Aug 15, 2020
3335: [mtl] add texture cube feature, refactor private caps r=kvark a=kvark

Helps gfx-rs/wgpu#877
PR checklist:
- [x] `make` succeeds (on *nix)
- [ ] `make reftests` succeeds
- [ ] tested examples with the following backends:


Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
@kvark
Copy link
Copy Markdown
Member

kvark commented Aug 15, 2020

don't wait for it though

@kvark
Copy link
Copy Markdown
Member

kvark commented Aug 17, 2020

@StarArawn could you update this?

Copy link
Copy Markdown
Contributor

@monocodus monocodus bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an autogenerated code review.

Checker summary (by rust_clippy):
The tool has found 0 warnings, 1 errors.

@kvark
Copy link
Copy Markdown
Member

kvark commented Aug 17, 2020

Could you squash please?

@StarArawn StarArawn force-pushed the add-image-cube-array branch from 09ab3ab to 4cb50e8 Compare August 17, 2020 03:10
Copy link
Copy Markdown
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Aug 17, 2020

@bors bors bot merged commit f7ec6cc into gfx-rs:master Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants