Skip to content

Conversation

@reduz
Copy link
Member

@reduz reduz commented Jul 9, 2021

  • Added support to our local copy of SpirV Reflect (which does not support it).
  • Pass them on render or compute pipeline creation.
  • Not implemented in our shaders yet.

image

@reduz reduz requested review from a team as code owners July 9, 2021 20:29
@reduz reduz force-pushed the implement-specialization-constants branch from 6e0224d to 048b0ae Compare July 9, 2021 20:34
@akien-mga akien-mga force-pushed the implement-specialization-constants branch from 048b0ae to ef3415c Compare July 9, 2021 20:55
@akien-mga akien-mga added this to the 4.0 milestone Jul 9, 2021
@akien-mga
Copy link
Member

Force pushed an amend to cleanup the thirdparty changes and add a patch file so they can be reapplied on updates.

Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

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

Looks good to me! I reviewed and nothing really jumped out. I haven't worked with specialization constants before so I can't catch much beyond simple errors.

* Added support to our local copy of SpirV Reflect (which does not support it).
* Pass them on render or compute pipeline creation.
* Not implemented in our shaders yet.
@akien-mga akien-mga force-pushed the implement-specialization-constants branch from ef3415c to b2f6db7 Compare July 11, 2021 21:16
@akien-mga akien-mga merged commit d1f25bb into godotengine:master Jul 11, 2021
@akien-mga
Copy link
Member

Thanks!

@shangjiaxuan
Copy link

Any plans on putting this to upstream? I'm opening a pr upstream, and working on adding this to the main repo (with some added error checks, planning to add an evaluator that can evaluate some SpecConstantOp), and it seems khronos need committers to sign a license agreement. I was wondering if that's okay.

@shangjiaxuan
Copy link

Also note that the code in godot doesn't support 64 bit constants (they take up two words in instruction).

@akien-mga
Copy link
Member

@shangjiaxuan Thanks for working on upstreaming this. I think you can consider that the Godot patch is under the same license as SPIRV-Reflect, as if it had been PR'ed directly. @reduz can comment to confirm.

You could also add reduz as co-author by amending the commit message with: Co-authored-by: Juan Linietsky <reduzio@gmail.com>.

@reduz
Copy link
Member Author

reduz commented Jul 28, 2022

I confirm the license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants