mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-20 21:43:50 +00:00
Reduces canvas2d layout for SPIR-V
It's preferrable to keep push constant under 64 bytes for some vendors. The layout optimization rule is similar to C++ one.
This commit is contained in:
@@ -6,9 +6,9 @@ END_DRAW_TEXTURES
|
||||
|
||||
BEGIN_DRAW_UNIFORMS
|
||||
UNIFORM(vec4, transform)
|
||||
UNIFORM(vec2, translation)
|
||||
UNIFORM(vec4, colorAdd)
|
||||
UNIFORM(vec4, colorMul)
|
||||
UNIFORM(vec2, translation)
|
||||
UNIFORM(float, grayscaleFactor)
|
||||
END_DRAW_UNIFORMS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user