mirror of
https://github.com/storytold/wgpu.git
synced 2026-12-01 02:24:35 +01:00
Moved the global writing part to it's own function Merged the texture and the global loop Applied some suggestions from kvark Added a topological sorting of the call graph before writing Removed the struct block loop and now every struct is written Organized the main backend file a bit
205 lines
3.3 KiB
Rust
205 lines
3.3 KiB
Rust
pub const RESERVED_KEYWORDS: &[&str] = &[
|
|
"attribute",
|
|
"const",
|
|
"uniform",
|
|
"varying",
|
|
"buffer",
|
|
"shared",
|
|
"coherent",
|
|
"volatile",
|
|
"restrict",
|
|
"readonly",
|
|
"writeonly",
|
|
"atomic_uint",
|
|
"layout",
|
|
"centroid",
|
|
"flat",
|
|
"smooth",
|
|
"noperspective",
|
|
"patch",
|
|
"sample",
|
|
"break",
|
|
"continue",
|
|
"do",
|
|
"for",
|
|
"while",
|
|
"switch",
|
|
"case",
|
|
"default",
|
|
"if",
|
|
"else",
|
|
"subroutine",
|
|
"in",
|
|
"out",
|
|
"inout",
|
|
"float",
|
|
"double",
|
|
"int",
|
|
"void",
|
|
"bool",
|
|
"true",
|
|
"false",
|
|
"invariant",
|
|
"precise",
|
|
"discard",
|
|
"return",
|
|
"mat2",
|
|
"mat3",
|
|
"mat4",
|
|
"dmat2",
|
|
"dmat3",
|
|
"dmat4",
|
|
"mat2x2",
|
|
"mat2x3",
|
|
"mat2x4",
|
|
"dmat2x2",
|
|
"dmat2x3",
|
|
"dmat2x4",
|
|
"mat3x2",
|
|
"mat3x3",
|
|
"mat3x4",
|
|
"dmat3x2",
|
|
"dmat3x3",
|
|
"dmat3x4",
|
|
"mat4x2",
|
|
"mat4x3",
|
|
"mat4x4",
|
|
"dmat4x2",
|
|
"dmat4x3",
|
|
"dmat4x4",
|
|
"vec2",
|
|
"vec3",
|
|
"vec4",
|
|
"ivec2",
|
|
"ivec3",
|
|
"ivec4",
|
|
"bvec2",
|
|
"bvec3",
|
|
"bvec4",
|
|
"dvec2",
|
|
"dvec3",
|
|
"dvec4",
|
|
"uint",
|
|
"uvec2",
|
|
"uvec3",
|
|
"uvec4",
|
|
"lowp",
|
|
"mediump",
|
|
"highp",
|
|
"precision",
|
|
"sampler1D",
|
|
"sampler2D",
|
|
"sampler3D",
|
|
"samplerCube",
|
|
"sampler1DShadow",
|
|
"sampler2DShadow",
|
|
"samplerCubeShadow",
|
|
"sampler1DArray",
|
|
"sampler2DArray",
|
|
"sampler1DArrayShadow",
|
|
"sampler2DArrayShadow",
|
|
"isampler1D",
|
|
"isampler2D",
|
|
"isampler3D",
|
|
"isamplerCube",
|
|
"isampler1DArray",
|
|
"isampler2DArray",
|
|
"usampler1D",
|
|
"usampler2D",
|
|
"usampler3D",
|
|
"usamplerCube",
|
|
"usampler1DArray",
|
|
"usampler2DArray",
|
|
"sampler2DRect",
|
|
"sampler2DRectShadow",
|
|
"isampler2D",
|
|
"Rect",
|
|
"usampler2DRect",
|
|
"samplerBuffer",
|
|
"isamplerBuffer",
|
|
"usamplerBuffer",
|
|
"sampler2DMS",
|
|
"isampler2DMS",
|
|
"usampler2DMS",
|
|
"sampler2DMSArray",
|
|
"isampler2DMSArray",
|
|
"usampler2DMSArray",
|
|
"samplerCubeArray",
|
|
"samplerCubeArrayShadow",
|
|
"isamplerCubeArray",
|
|
"usamplerCubeArray",
|
|
"image1D",
|
|
"iimage1D",
|
|
"uimage1D",
|
|
"image2D",
|
|
"iimage2D",
|
|
"uimage2D",
|
|
"image3D",
|
|
"iimage3D",
|
|
"uimage3D",
|
|
"image2DRect",
|
|
"iimage2DRect",
|
|
"uimage2DRect",
|
|
"imageCube",
|
|
"iimageCube",
|
|
"uimageCube",
|
|
"imageBuffer",
|
|
"iimageBuffer",
|
|
"uimageBuffer",
|
|
"image1DArray",
|
|
"iimage1DArray",
|
|
"uimage1DArray",
|
|
"image2DArray",
|
|
"iimage2DArray",
|
|
"uimage2DArray",
|
|
"imageCubeArray",
|
|
"iimageCubeArray",
|
|
"uimageCubeArray",
|
|
"image2DMS",
|
|
"iimage2DMS",
|
|
"uimage2DMS",
|
|
"image2DMSArray",
|
|
"iimage2DMSArray",
|
|
"uimage2DMSArraystruct",
|
|
"common",
|
|
"partition",
|
|
"active",
|
|
"asm",
|
|
"class",
|
|
"union",
|
|
"enum",
|
|
"typedef",
|
|
"template",
|
|
"this",
|
|
"resource",
|
|
"goto",
|
|
"inline",
|
|
"noinline",
|
|
"public",
|
|
"static",
|
|
"extern",
|
|
"external",
|
|
"interface",
|
|
"long",
|
|
"short",
|
|
"half",
|
|
"fixed",
|
|
"unsigned",
|
|
"superp",
|
|
"input",
|
|
"output",
|
|
"hvec2",
|
|
"hvec3",
|
|
"hvec4",
|
|
"fvec2",
|
|
"fvec3",
|
|
"fvec4",
|
|
"sampler3DRect",
|
|
"filter",
|
|
"sizeof",
|
|
"cast",
|
|
"namespace",
|
|
"using",
|
|
"main",
|
|
];
|