diff options
Diffstat (limited to 'source/slang/core.meta.slang.h')
| -rw-r--r-- | source/slang/core.meta.slang.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/source/slang/core.meta.slang.h b/source/slang/core.meta.slang.h index 974607a75..5e1f2ec89 100644 --- a/source/slang/core.meta.slang.h +++ b/source/slang/core.meta.slang.h @@ -1028,3 +1028,71 @@ for (auto op : binaryOps) } } SLANG_RAW("\n") +SLANG_RAW("\n") +SLANG_RAW("// Statement Attributes\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(LoopStmt)\n") +SLANG_RAW("attribute_syntax [unroll(count: int = 0)] : UnrollAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(LoopStmt)\n") +SLANG_RAW("attribute_syntax [loop] : LoopAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(LoopStmt)\n") +SLANG_RAW("attribute_syntax [fastopt] : FastOptAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(LoopStmt)\n") +SLANG_RAW("attribute_syntax [allow_uav_condition] : AllowUAVConditionAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(IfStmt)\n") +SLANG_RAW("attribute_syntax [flatten] : FlattenAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(IfStmt)\n") +SLANG_RAW("__attributeTarget(SwitchStmt)\n") +SLANG_RAW("attribute_syntax [branch] : BranchAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(SwitchStmt)\n") +SLANG_RAW("attribute_syntax [forcecase] : ForceCaseAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(SwitchStmt)\n") +SLANG_RAW("attribute_syntax [call] : CallAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("// Entry-point Attributes\n") +SLANG_RAW("\n") +SLANG_RAW("// All Stages\n") +SLANG_RAW("__attributeTarget(FuncDecl)\n") +SLANG_RAW("attribute_syntax [shader(stage)] : EntryPointAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("// Hull Shader\n") +SLANG_RAW("__attributeTarget(FuncDecl)\n") +SLANG_RAW("attribute_syntax [maxtessfactor(factor: float)] : MaxTessFactorAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(FuncDecl)\n") +SLANG_RAW("attribute_syntax [outputcontrolpoints(count: int)] : OutputControlPointsAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(FuncDecl)\n") +SLANG_RAW("attribute_syntax [outputtopology(topology)] : OuptutTopologyAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(FuncDecl)\n") +SLANG_RAW("attribute_syntax [partitioning(mode)] : PartitioningAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(FuncDecl)\n") +SLANG_RAW("attribute_syntax [patchconstantfunc(name)] : PatchConstantFuncAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("// Hull/Domain Shader\n") +SLANG_RAW("__attributeTarget(FuncDecl)\n") +SLANG_RAW("attribute_syntax [domain(domain)] : DomainAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("// Geometry Shader\n") +SLANG_RAW("__attributeTarget(FuncDecl)\n") +SLANG_RAW("attribute_syntax [maxvertexcount(count: int)] : MaxVertexCountAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("__attributeTarget(FuncDecl)\n") +SLANG_RAW("attribute_syntax [instance(count: int)] : InstanceAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("// Fragment (\"Pixel\") Shader\n") +SLANG_RAW("__attributeTarget(FuncDecl)\n") +SLANG_RAW("attribute_syntax [earlydepthstencil] : EarlyDepthStencilAttribute;\n") +SLANG_RAW("\n") +SLANG_RAW("// Compute Shader\n") +SLANG_RAW("__attributeTarget(FuncDecl)\n") +SLANG_RAW("attribute_syntax [numthreads(x: int, y: int = 1, z: int = 1)] : NumThreadsAttribute;\n") |
