mirror of
https://github.com/storytold/wgpu.git
synced 2026-12-01 10:34:57 +01:00
* Rewrite front/back doc summaries - Use line comments instead of block comments - Standardize language for each front/backend - Add reference link for each format - Minor punctuation changes * Add documentation for keywords module * Clarify contents of keywords module in summary * Refer to modules by their type name * Add basic summary for valid module * Adjust EarlyDepthTest and ConservativeDepth docs * Remove "in" from list * Adjust wording * Standardize format of docstrings * Adjust module links to be consistent with other links * Add summary for reserved keywords list * Remove extraneous doc spaces with `cargo fmt` * Correct spelling of whether and rewrite some lines * Fill out GLSL backend docs * Remove unnecessary link targets * Fill out DOT backend docs * Change module line comments to block comments * Remove unnecessary spaces * Fix mistake during rebasing
167 lines
2.8 KiB
Rust
167 lines
2.8 KiB
Rust
/*!
|
|
HLSL Reserved Words
|
|
- <https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-appendix-keywords>
|
|
- <https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-appendix-reserved-words>
|
|
*/
|
|
|
|
pub const RESERVED: &[&str] = &[
|
|
"AppendStructuredBuffer",
|
|
"asm",
|
|
"asm_fragment",
|
|
"BlendState",
|
|
"bool",
|
|
"break",
|
|
"Buffer",
|
|
"ByteAddressBuffer",
|
|
"case",
|
|
"cbuffer",
|
|
"centroid",
|
|
"class",
|
|
"column_major",
|
|
"compile",
|
|
"compile_fragment",
|
|
"CompileShader",
|
|
"const",
|
|
"continue",
|
|
"ComputeShader",
|
|
"ConsumeStructuredBuffer",
|
|
"default",
|
|
"DepthStencilState",
|
|
"DepthStencilView",
|
|
"discard",
|
|
"do",
|
|
"double",
|
|
"DomainShader",
|
|
"dword",
|
|
"else",
|
|
"export",
|
|
"extern",
|
|
"false",
|
|
"float",
|
|
"for",
|
|
"fxgroup",
|
|
"GeometryShader",
|
|
"groupshared",
|
|
"half",
|
|
"Hullshader",
|
|
"if",
|
|
"in",
|
|
"inline",
|
|
"inout",
|
|
"InputPatch",
|
|
"int",
|
|
"interface",
|
|
"line",
|
|
"lineadj",
|
|
"linear",
|
|
"LineStream",
|
|
"matrix",
|
|
"min16float",
|
|
"min10float",
|
|
"min16int",
|
|
"min12int",
|
|
"min16uint",
|
|
"namespace",
|
|
"nointerpolation",
|
|
"noperspective",
|
|
"NULL",
|
|
"out",
|
|
"OutputPatch",
|
|
"packoffset",
|
|
"pass",
|
|
"pixelfragment",
|
|
"PixelShader",
|
|
"point",
|
|
"PointStream",
|
|
"precise",
|
|
"RasterizerState",
|
|
"RenderTargetView",
|
|
"return",
|
|
"register",
|
|
"row_major",
|
|
"RWBuffer",
|
|
"RWByteAddressBuffer",
|
|
"RWStructuredBuffer",
|
|
"RWTexture1D",
|
|
"RWTexture1DArray",
|
|
"RWTexture2D",
|
|
"RWTexture2DArray",
|
|
"RWTexture3D",
|
|
"sample",
|
|
"sampler",
|
|
"SamplerState",
|
|
"SamplerComparisonState",
|
|
"shared",
|
|
"snorm",
|
|
"stateblock",
|
|
"stateblock_state",
|
|
"static",
|
|
"string",
|
|
"struct",
|
|
"switch",
|
|
"StructuredBuffer",
|
|
"tbuffer",
|
|
"technique",
|
|
"technique10",
|
|
"technique11",
|
|
"texture",
|
|
"Texture1D",
|
|
"Texture1DArray",
|
|
"Texture2D",
|
|
"Texture2DArray",
|
|
"Texture2DMS",
|
|
"Texture2DMSArray",
|
|
"Texture3D",
|
|
"TextureCube",
|
|
"TextureCubeArray",
|
|
"true",
|
|
"typedef",
|
|
"triangle",
|
|
"triangleadj",
|
|
"TriangleStream",
|
|
"uint",
|
|
"uniform",
|
|
"unorm",
|
|
"unsigned",
|
|
"vector",
|
|
"vertexfragment",
|
|
"VertexShader",
|
|
"void",
|
|
"volatile",
|
|
"while",
|
|
"auto",
|
|
"case",
|
|
"catch",
|
|
"char",
|
|
"class",
|
|
"const_cast",
|
|
"default",
|
|
"delete",
|
|
"dynamic_cast",
|
|
"enum",
|
|
"explicit",
|
|
"friend",
|
|
"goto",
|
|
"long",
|
|
"mutable",
|
|
"new",
|
|
"operator",
|
|
"private",
|
|
"protected",
|
|
"public",
|
|
"reinterpret_cast",
|
|
"short",
|
|
"signed",
|
|
"sizeof",
|
|
"static_cast",
|
|
"template",
|
|
"this",
|
|
"throw",
|
|
"try",
|
|
"typename",
|
|
"union",
|
|
"unsigned",
|
|
"using",
|
|
"virtual",
|
|
];
|