webai-community / aquarium

BSD 3-Clause "New" or "Revised" License
26 stars 7 forks source link

OutsideModelDawn should create large enough buffer for worldUniform #15

Closed shaoboyan closed 5 years ago

shaoboyan commented 5 years ago

OutsideModelDawn hits a validation error when executing diffuseVertexShader with Metal debug layer on in Aquarium Dawn backend that mViewBuffer is not as large as what shader expected worldUniforms to be.

JiangYizhou commented 5 years ago

Outside model share the same vertex shader with generic model, and I forgot to match size of world uniform with vertex shader. Thanks for figuring this out.