Skip to content

Add Clone and PartialEq implementations for SamplerDescriptor#527

Merged
bors[bot] merged 1 commit intogfx-rs:masterfrom
mitchmindtree:sampler_desc
Mar 22, 2020
Merged

Add Clone and PartialEq implementations for SamplerDescriptor#527
bors[bot] merged 1 commit intogfx-rs:masterfrom
mitchmindtree:sampler_desc

Conversation

@mitchmindtree
Copy link
Copy Markdown
Contributor

Helps when attempting to support multiple samplers in an immediate mode
context (e.g. easily compare sampler descriptors and check if I need to
add a command to switch bind groups).

Helps when attempting to support multiple samplers in an immediate mode
context (e.g. easily compare sampler descriptors and check if I need to
add a command to switch bind groups).
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.

Thanks!
bors r+

bors bot added a commit that referenced this pull request Mar 20, 2020
527: Add `Clone` and `PartialEq` implementations for `SamplerDescriptor` r=kvark a=mitchmindtree

Helps when attempting to support multiple samplers in an immediate mode
context (e.g. easily compare sampler descriptors and check if I need to
add a command to switch bind groups).

Co-authored-by: mitchmindtree <mitchell.nordine@gmail.com>
@kvark
Copy link
Copy Markdown
Member

kvark commented Mar 22, 2020

bors retry

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Mar 22, 2020

Build succeeded

@bors bors bot merged commit bf9e2db into gfx-rs:master Mar 22, 2020
kvark pushed a commit to kvark/wgpu that referenced this pull request Jun 3, 2021
527: Expose debug marker/groups for ComputePass and Encoder r=kvark a=Wumpf

Added uses of them to the examples to make sure everything compiles & works.
Marker on compute examples are arguably a bit awkward since they are so trivial. On the shadow example however it is a delight when inspected in RenderDoc! (and it will do wonders to my project which can run into situations with literally thousands of compute dispatches per frame 😅 )

RenderDoc, boids example:
![0_boids](https://user-images.githubusercontent.com/1220815/90963818-70c1fc80-e4bb-11ea-9842-25240ae5c927.png)

RenderDoc, shadow example:
![1_shadow](https://user-images.githubusercontent.com/1220815/90963819-728bc000-e4bb-11ea-9395-630a1f7b3a31.png)


Co-authored-by: Andreas Reich <r_andreas2@web.de>
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