CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
HLSLKeywords.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
11
14
16
17 // Returns the Keyword-to-Token map for HLSL.
19
20 // Returns the keywords map extension for Cg (i.e. only the additional keywords that are only part of Cg, e.g. "fixed4").
22
23 // ---------------------------------------------------------------------------------------------
24
25 // Returns the data type for the specified HLSL keyword or throws an std::runtime_error on failure.
27
28 // Returns the data type for the specified Cg keyword or throws an std::runtime_error on failure.
30
31 // ---------------------------------------------------------------------------------------------
32
33 // Returns the primitive type for the specified HLSL keyword or throws an std::runtime_error on failure.
35
36 // ---------------------------------------------------------------------------------------------
37
38 // Returns the storage class for the specified HLSL keyword or throws an std::runtime_error on failure.
40
41 // ---------------------------------------------------------------------------------------------
42
43 // Returns the interpolation modifier for the specified HLSL keyword or throws an std::runtime_error on failure.
45
46 // ---------------------------------------------------------------------------------------------
47
48 // Returns the type modifier for the specified HLSL keyword or throws an std::runtime_error on failure.
50
51 // ---------------------------------------------------------------------------------------------
52
53 // Returns the uniform buffer type for the specified HLSL keyword or throws an std::runtime_error on failure.
55
56 // ---------------------------------------------------------------------------------------------
57
58 // Returns the buffer type for the specified HLSL keyword or throws an std::runtime_error on failure.
60
61 // ---------------------------------------------------------------------------------------------
62
63 // Returns the sampler type for the specified HLSL keyword or throws an std::runtime_error on failure.
65
66 // ---------------------------------------------------------------------------------------------
67
68 // Returns the HLSL keyword for the specified attribut type or null on failure.
70
71 // Returns the attribute type for the specified HLSL keyword or returns AttributeType::Undefined.
73
74 // ---------------------------------------------------------------------------------------------
75
76 // Returns the attribute value for the specified HLSL keyword or returns AttributeValue::Undefined.
78
79 // ---------------------------------------------------------------------------------------------
80
81 // Returns the semantic for the specified identifier or Semantic::UserDefined if the identifier is not reserved.
83
84 // ---------------------------------------------------------------------------------------------
85
86 // Maps a keyword from "layout" attribute extension into an image layout format or returns ImageLayoutFormat::Undefined.
88
89} // namespace CeresEngine::ShaderCompiler
Definition AST.hpp:33
DataType hlslKeywordToDataType(const String &keyword)
TypeModifier
Definition ASTEnums.hpp:471
DataType hlslKeywordExtCgToDataType(const String &keyword)
InterpModifier hlslKeywordToInterpModifier(const String &keyword)
AttributeValue
Definition ASTEnums.hpp:948
AttributeType hlslKeywordToAttributeType(const String &keyword)
const String * attributeTypeToHLSLKeyword(const AttributeType t)
ImageLayoutFormat
Definition ASTEnums.hpp:642
ImageLayoutFormat extHLSLKeywordToImageLayoutFormat(const String &keyword)
SamplerType hlslKeywordToSamplerType(const String &keyword)
InterpModifier
Definition ASTEnums.hpp:453
IndexedSemantic hlslKeywordToSemantic(const String &ident, bool useD3D10Semantics=true)
Map< String, Token::Types > KeywordMapType
Definition Token.hpp:177
StorageClass
Definition ASTEnums.hpp:441
UniformBufferType
Definition ASTEnums.hpp:482
const KeywordMapType & hlslKeywords()
DataType
Definition ASTEnums.hpp:159
PrimitiveType hlslKeywordToPrimitiveType(const String &keyword)
AttributeValue hlslKeywordToAttributeValue(const String &keyword)
const KeywordMapType & hlslKeywordsExtCg()
TypeModifier hlslKeywordToTypeModifier(const String &keyword)
UniformBufferType hlslKeywordToUniformBufferType(const String &keyword)
StorageClass hlslKeywordToStorageClass(const String &keyword)
BufferType
Definition ASTEnums.hpp:492
BufferType hlslKeywordToBufferType(const String &keyword)
PrimitiveType
Definition ASTEnums.hpp:425
SamplerType
Definition ASTEnums.hpp:571
AttributeType
Definition ASTEnums.hpp:766
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25