Skip to content
Discussion options

You must be logged in to vote

Push constants still follow std430 rules (i.e. wgsl block's rules for storage buffers).

  • translation is at offset 0, size 8, alignment 8
  • rotation is at offset 8, size 8, alignment 4
  • scale is at offset 16, size 8, alignment 8
  • tint is at offset 32, size 16, alignment 16

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@junglie85
Comment options

Answer selected by junglie85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants