Shader: Add module statement

This commit is contained in:
Jérôme Leclercq
2022-03-01 19:36:18 +01:00
parent ad892dfb43
commit 99e07e6e1e
56 changed files with 418 additions and 123 deletions

View File

@@ -1,3 +1,6 @@
[nzsl_version("1.0")]
module;
[layout(std140)]
struct ViewerData
{

View File

@@ -1,3 +1,6 @@
[nzsl_version("1.0")]
module;
[layout(std140)]
struct ViewerData
{

View File

@@ -1,3 +1,6 @@
[nzsl_version("1.0")]
module;
option HasDiffuseTexture: bool = false;
option HasAlphaTexture: bool = false;
option AlphaTest: bool = false;

View File

@@ -1,3 +1,6 @@
[nzsl_version("1.0")]
module;
[layout(std140)]
struct BasicSettings
{

View File

@@ -1,3 +1,6 @@
[nzsl_version("1.0")]
module;
external
{
[binding(0)] colorTexture: sampler2D[f32]

View File

@@ -1,3 +1,6 @@
[nzsl_version("1.0")]
module;
[layout(std140)]
struct ViewerData
{

View File

@@ -1,3 +1,6 @@
[nzsl_version("1.0")]
module;
[layout(std140)]
struct ViewerData
{

View File

@@ -1,3 +1,6 @@
[nzsl_version("1.0")]
module;
[layout(std140)]
struct PointLight
{

View File

@@ -1,3 +1,6 @@
[nzsl_version("1.0")]
module;
[layout(std140)]
struct ViewerData
{

View File

@@ -1,3 +1,6 @@
[nzsl_version("1.0")]
module;
[layout(std140)]
struct ViewerData
{