Diligent Engine  v.2.4.g
GraphicsTypesOutputInserters.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2019-2021 Diligent Graphics LLC
3  * Copyright 2015-2019 Egor Yusov
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * In no event and under no legal theory, whether in tort (including negligence),
18  * contract, or otherwise, unless required by applicable law (such as deliberate
19  * and grossly negligent acts) or agreed to in writing, shall any Contributor be
20  * liable for any damages, including any direct, indirect, special, incidental,
21  * or consequential damages of any character arising as a result of this License or
22  * out of the use or inability to use the software (including but not limited to damages
23  * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
24  * all other commercial damages or losses), even if such Contributor has been advised
25  * of the possibility of such damages.
26  */
27 
28 #pragma once
29 
32 
33 #include <iostream>
34 
35 #include "GraphicsAccessories.hpp"
36 
37 namespace Diligent
38 {
39 
40 #define DEFINE_TYPE_PRINTER(Type, PrintFunction, ...) \
41  inline std::ostream& operator<<(std::ostream& os, const Type& Obj) \
42  { \
43  return os << PrintFunction(Obj, ##__VA_ARGS__); \
44  }
45 
68 #undef DEFINE_TYPE_PRINTER
69 
70 } // namespace Diligent
GraphicsAccessories.hpp
Diligent::TextureDesc
struct TextureDesc TextureDesc
Definition: Texture.h:162
Diligent::SHADER_TYPE
SHADER_TYPE
Describes the shader type.
Definition: GraphicsTypes.h:65
Diligent::USAGE
USAGE
Resource usage.
Definition: GraphicsTypes.h:143
Diligent::GetStencilOpLiteralName
const Char * GetStencilOpLiteralName(STENCIL_OP StencilOp)
Returns the literal name of a stencil operation.
Definition: GraphicsAccessories.cpp:641
Diligent::SHADER_RESOURCE_TYPE
SHADER_RESOURCE_TYPE
Describes shader resource type.
Definition: Shader.h:356
Diligent::TEXTURE_ADDRESS_MODE
TEXTURE_ADDRESS_MODE
Texture address mode.
Definition: GraphicsTypes.h:889
Diligent::GetTextureDescString
String GetTextureDescString(const TextureDesc &Desc)
Returns the string containing the texture description.
Definition: GraphicsAccessories.cpp:920
Diligent::GetBufferFormatString
String GetBufferFormatString(const BufferFormat &Fmt)
Returns the string containing the buffer format description.
Definition: GraphicsAccessories.cpp:992
Diligent::GetComparisonFunctionLiteralName
const Char * GetComparisonFunctionLiteralName(COMPARISON_FUNCTION ComparisonFunc, bool bGetFullName)
Returns the literal name of a comparison function. For instance, for COMPARISON_FUNC_LESS,...
Definition: GraphicsAccessories.cpp:619
Diligent::FILTER_TYPE
FILTER_TYPE
Filter type.
Definition: GraphicsTypes.h:864
Diligent::FILL_MODE
FILL_MODE
Fill mode.
Definition: RasterizerState.h:46
Diligent::TEXTURE_VIEW_TYPE
TEXTURE_VIEW_TYPE
Texture view type.
Definition: GraphicsTypes.h:274
Diligent::GetTexViewTypeLiteralName
const Char * GetTexViewTypeLiteralName(TEXTURE_VIEW_TYPE ViewType)
Returns the literal name of a texture view type. For instance, for a shader resource view,...
Definition: GraphicsAccessories.cpp:408
Diligent::GetBlendOperationLiteralName
const Char * GetBlendOperationLiteralName(BLEND_OPERATION BlendOp)
Returns the literal name of a blend operation.
Definition: GraphicsAccessories.cpp:700
Diligent::BLEND_FACTOR
BLEND_FACTOR
Blend factors.
Definition: BlendState.h:50
Diligent::GetValueTypeString
const Char * GetValueTypeString(VALUE_TYPE Val)
Returns the string representing the specified value type.
Definition: GraphicsAccessories.cpp:38
Diligent::GetBlendFactorLiteralName
const Char * GetBlendFactorLiteralName(BLEND_FACTOR BlendFactor)
Returns the literal name of a blend factor.
Definition: GraphicsAccessories.cpp:666
Diligent::GetFilterTypeLiteralName
const Char * GetFilterTypeLiteralName(FILTER_TYPE FilterType, bool bGetFullName)
Returns the literal name of a filter type. For instance, for FILTER_TYPE_POINT, if bGetFullName == tr...
Definition: GraphicsAccessories.cpp:574
Diligent::CULL_MODE
CULL_MODE
Cull mode.
Definition: RasterizerState.h:69
Diligent::GetResourceStateFlagString
const Char * GetResourceStateFlagString(RESOURCE_STATE State)
Returns the string containing the buffer mode description.
Definition: GraphicsAccessories.cpp:1045
Diligent::GetMapTypeString
const Char * GetMapTypeString(MAP_TYPE MapType)
Returns the string containing the map type.
Definition: GraphicsAccessories.cpp:761
Diligent::VALUE_TYPE
VALUE_TYPE
Value type.
Definition: GraphicsTypes.h:49
Diligent::GetBufferDescString
String GetBufferDescString(const BufferDesc &Desc)
Returns the string containing the buffer description.
Definition: GraphicsAccessories.cpp:1003
Diligent::BufferDesc
struct BufferDesc BufferDesc
Definition: Buffer.h:152
Diligent::GetUsageString
const Char * GetUsageString(USAGE Usage)
Returns the string containing the usage.
Definition: GraphicsAccessories.cpp:776
Diligent::COMPARISON_FUNCTION
COMPARISON_FUNCTION
Comparison function.
Definition: GraphicsTypes.h:931
Diligent::BUFFER_MODE
BUFFER_MODE
Describes the buffer access mode.
Definition: Buffer.h:48
DEFINE_TYPE_PRINTER
#define DEFINE_TYPE_PRINTER(Type, PrintFunction,...)
Definition: GraphicsTypesOutputInserters.hpp:40
Diligent::STENCIL_OP
STENCIL_OP
Stencil operation.
Definition: DepthStencilState.h:48
Diligent::GetBufferViewTypeLiteralName
const Char * GetBufferViewTypeLiteralName(BUFFER_VIEW_TYPE ViewType)
Returns the literal name of a buffer view type. For instance, for an unordered access view,...
Definition: GraphicsAccessories.cpp:443
Diligent::GetFillModeLiteralName
const Char * GetFillModeLiteralName(FILL_MODE FillMode)
Returns the literal name of a fill mode.
Definition: GraphicsAccessories.cpp:722
Diligent::GetShaderVariableTypeLiteralName
const Char * GetShaderVariableTypeLiteralName(SHADER_RESOURCE_VARIABLE_TYPE VarType, bool bGetFullName=false)
Returns the literal name of a shader variable type. For instance, for SHADER_RESOURCE_VARIABLE_TYPE_S...
Definition: GraphicsAccessories.cpp:524
Diligent::BLEND_OPERATION
BLEND_OPERATION
Blending operation.
Definition: BlendState.h:138
Diligent::GetShaderTypeLiteralName
const Char * GetShaderTypeLiteralName(SHADER_TYPE ShaderType)
Returns the literal name of a shader type. For instance, for a pixel shader, "SHADER_TYPE_PIXEL" will...
Definition: GraphicsAccessories.cpp:476
Diligent::GetShaderResourceTypeLiteralName
const Char * GetShaderResourceTypeLiteralName(SHADER_RESOURCE_TYPE ResourceType, bool bGetFullName=false)
Returns the literal name of a shader resource type. For instance, for SHADER_RESOURCE_TYPE_CONSTANT_B...
Definition: GraphicsAccessories.cpp:552
Diligent::GetBufferModeString
const Char * GetBufferModeString(BUFFER_MODE Mode)
Returns the string containing the buffer mode description.
Definition: GraphicsAccessories.cpp:966
Diligent::RESOURCE_STATE
RESOURCE_STATE
Resource usage state.
Definition: GraphicsTypes.h:2814
Diligent::RESOURCE_DIMENSION
RESOURCE_DIMENSION
Describes resource dimension.
Definition: GraphicsTypes.h:256
Diligent::GetTextureAddressModeLiteralName
const Char * GetTextureAddressModeLiteralName(TEXTURE_ADDRESS_MODE AddressMode, bool bGetFullName)
Returns the literal name of a texture address mode. For instance, for TEXTURE_ADDRESS_WRAP,...
Definition: GraphicsAccessories.cpp:600
Diligent::BUFFER_VIEW_TYPE
BUFFER_VIEW_TYPE
Buffer view type.
Definition: GraphicsTypes.h:303
Diligent::MAP_TYPE
MAP_TYPE
Resource mapping type.
Definition: GraphicsTypes.h:206
Diligent::GetCullModeLiteralName
const Char * GetCullModeLiteralName(CULL_MODE CullMode)
Returns the literal name of a cull mode.
Definition: GraphicsAccessories.cpp:741
Diligent::GetResourceDimString
const Char * GetResourceDimString(RESOURCE_DIMENSION TexType)
Returns the string containing the texture type.
Definition: GraphicsAccessories.cpp:804
Diligent::BufferFormat
struct BufferFormat BufferFormat
Definition: BufferView.h:85
Diligent
The library uses Direct3D-style math:
Definition: AdvancedMath.hpp:37
Diligent::SHADER_RESOURCE_VARIABLE_TYPE
SHADER_RESOURCE_VARIABLE_TYPE
Describes the type of the shader resource variable.
Definition: ShaderResourceVariable.h:48