Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upProper PSO errors, with constant offsets matching #1004
Conversation
sectopod
added some commits
Jul 27, 2016
This comment has been minimized.
This comment has been minimized.
|
I assume arrays are the biggest problem, and it interferes with #898. |
sectopod
added some commits
Jul 28, 2016
sectopod
changed the title
[WIP] Constant buffer elements matching
[WIP] Proper PSO errors, with constant offsets matching
Jul 28, 2016
This comment has been minimized.
This comment has been minimized.
|
Please provide an example error message now that we can cheer on it ;) |
This comment has been minimized.
This comment has been minimized.
|
My windows machine HDD has failed. Unfortunately, I'll not be able to finish this fix properly for the DX samples to run. Good news is - all the code is here, in PR, I didn't lose anything locally. If someone wants to pick it up and fix DX samples - would be great! |
This comment has been minimized.
This comment has been minimized.
|
Heads up - I've got the new windows setup working, will be able to finish this PR myself. |
This comment has been minimized.
This comment has been minimized.
|
Example error for a mismatched offset inside a constant buffer:
|
sectopod
added some commits
Aug 9, 2016
sectopod
changed the title
[WIP] Proper PSO errors, with constant offsets matching
Proper PSO errors, with constant offsets matching
Aug 9, 2016
This comment has been minimized.
This comment has been minimized.
|
I didn't bump the crate versions, but other than that - the PR is ready to go! |
This comment has been minimized.
This comment has been minimized.
|
At last, it has arrived! |
This comment has been minimized.
This comment has been minimized.
|
|
homu
merged commit fc7b7b9
into
gfx-rs:master
Aug 9, 2016
homu
added a commit
that referenced
this pull request
Aug 9, 2016
This comment has been minimized.
This comment has been minimized.
|
|
kvark
reviewed
Aug 9, 2016
| @@ -86,6 +86,27 @@ fn map_texture_type(tt: winapi::D3D_SRV_DIMENSION) -> s::TextureType { | |||
| } | |||
| } | |||
|
|
|||
| fn map_container(stype: &winapi::D3D11_SHADER_TYPE_DESC) -> s::ContainerType { | |||
| use gfx_core::shade::Dimension as Dim; | |||
| //TODO: use `match` when winapi allows | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
retep998
Aug 9, 2016
Oh, the method I use for enums in winapi 0.2 doesn't allow you to match on it? Well, this will be fixed in winapi 0.3 for sure because I will be making enums simple integer constants and you can definitely match on integers.
sectopod commentedJul 27, 2016
•
edited by kvark
API-breaking change (although no one will notice):
Fixes #722, fixes #896