Examples/DeferredShading: Use modules

This commit is contained in:
Jérôme Leclercq
2022-03-12 15:43:56 +01:00
parent 33554cf5a0
commit b595a5d4ec
10 changed files with 26 additions and 143 deletions

View File

@@ -1,19 +1,7 @@
[nzsl_version("1.0")]
module;
[layout(std140)]
struct ViewerData
{
projectionMatrix: mat4[f32],
invProjectionMatrix: mat4[f32],
viewMatrix: mat4[f32],
invViewMatrix: mat4[f32],
viewProjMatrix: mat4[f32],
invViewProjMatrix: mat4[f32],
renderTargetSize: vec2[f32],
invRenderTargetSize: vec2[f32],
eyePosition: vec3[f32]
}
import Engine/ViewerData;
[layout(std140)]
struct Settings