Diligent Engine API Reference: D:/GitHub/DiligentEngine/DiligentCore/Graphics/GraphicsEngine/interface/GraphicsTypes.h Source File

Diligent Engine API Reference

GraphicsTypes.h
1 /* Copyright 2015-2018 Egor Yusov
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
10 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
11 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF ANY PROPRIETARY RIGHTS.
12 *
13 * In no event and under no legal theory, whether in tort (including negligence),
14 * contract, or otherwise, unless required by applicable law (such as deliberate
15 * and grossly negligent acts) or agreed to in writing, shall any Contributor be
16 * liable for any damages, including any direct, indirect, special, incidental,
17 * or consequential damages of any character arising as a result of this License or
18 * out of the use or inability to use the software (including but not limited to damages
19 * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
20 * all other commercial damages or losses), even if such Contributor has been advised
21 * of the possibility of such damages.
22 */
23
24 #pragma once
25
28
29 #include "BasicTypes.h"
30
32 namespace Diligent
33 {
35
39 enum VALUE_TYPE : Int32
40 {
41 VT_UNDEFINED = 0,
42 VT_INT8,
43 VT_INT16,
44 VT_INT32,
45 VT_UINT8,
46 VT_UINT16,
47 VT_UINT32,
48 VT_FLOAT16,
49 VT_FLOAT32,
50 VT_NUM_TYPES
51 };
52
54
61 enum BIND_FLAGS : Int32
62 {
63 BIND_NONE = 0x0L,
64 BIND_VERTEX_BUFFER = 0x1L,
65 BIND_INDEX_BUFFER = 0x2L,
66 BIND_UNIFORM_BUFFER = 0x4L,
67 BIND_SHADER_RESOURCE = 0x8L,
69 BIND_STREAM_OUTPUT = 0x10L,
71 BIND_RENDER_TARGET = 0x20L,
72 BIND_DEPTH_STENCIL = 0x40L,
73 BIND_UNORDERED_ACCESS = 0x80L,
74 BIND_INDIRECT_DRAW_ARGS = 0x100L
75 };
76
78
84 enum USAGE : Int32
85 {
90 USAGE_STATIC = 0,
91
95 USAGE_DEFAULT,
96
99 USAGE_DYNAMIC,
100
103 USAGE_CPU_ACCESSIBLE
104 };
105
107
112 enum CPU_ACCESS_FLAG : Int32
113 {
114 CPU_ACCESS_READ = 0x01,
115 CPU_ACCESS_WRITE = 0x02
116 };
117
119
125 enum MAP_TYPE : Int32
126 {
129 MAP_READ = 0x01,
130
133 MAP_WRITE = 0x02,
134
137 MAP_READ_WRITE = 0x03
138 };
139
141
146 enum MAP_FLAGS : Int32
147 {
153 MAP_FLAG_DO_NOT_WAIT = 0x001,
154
158 MAP_FLAG_DISCARD = 0x002,
159
164 MAP_FLAG_DO_NOT_SYNCHRONIZE = 0x004
165 };
166
168
172 enum RESOURCE_DIMENSION : Int32
173 {
174 RESOURCE_DIM_UNDEFINED = 0,
175 RESOURCE_DIM_BUFFER,
176 RESOURCE_DIM_TEX_1D,
177 RESOURCE_DIM_TEX_1D_ARRAY,
178 RESOURCE_DIM_TEX_2D,
179 RESOURCE_DIM_TEX_2D_ARRAY,
180 RESOURCE_DIM_TEX_3D,
181 RESOURCE_DIM_TEX_CUBE,
182 RESOURCE_DIM_TEX_CUBE_ARRAY,
183 RESOURCE_DIM_NUM_DIMENSIONS
184 };
185
187
190 enum TEXTURE_VIEW_TYPE : Int32
191 {
193 TEXTURE_VIEW_UNDEFINED = 0,
194
197 TEXTURE_VIEW_SHADER_RESOURCE,
198
201 TEXTURE_VIEW_RENDER_TARGET,
202
205 TEXTURE_VIEW_DEPTH_STENCIL,
206
209 TEXTURE_VIEW_UNORDERED_ACCESS,
210
212 TEXTURE_VIEW_NUM_VIEWS
213 };
214
216
219 enum BUFFER_VIEW_TYPE : Int32
220 {
222 BUFFER_VIEW_UNDEFINED = 0,
223
226 BUFFER_VIEW_SHADER_RESOURCE,
227
230 BUFFER_VIEW_UNORDERED_ACCESS,
231
233 BUFFER_VIEW_NUM_VIEWS
234 };
235
237
244 enum TEXTURE_FORMAT : Int32
245 {
247 TEX_FORMAT_UNKNOWN = 0,
248
251 TEX_FORMAT_RGBA32_TYPELESS,
252
255 TEX_FORMAT_RGBA32_FLOAT,
256
259 TEX_FORMAT_RGBA32_UINT,
260
263 TEX_FORMAT_RGBA32_SINT,
264
268 TEX_FORMAT_RGB32_TYPELESS,
269
273 TEX_FORMAT_RGB32_FLOAT,
274
278 TEX_FORMAT_RGB32_UINT,
279
283 TEX_FORMAT_RGB32_SINT,
284
287 TEX_FORMAT_RGBA16_TYPELESS,
288
291 TEX_FORMAT_RGBA16_FLOAT,
292
297 TEX_FORMAT_RGBA16_UNORM,
298
301 TEX_FORMAT_RGBA16_UINT,
302
308 TEX_FORMAT_RGBA16_SNORM,
309
312 TEX_FORMAT_RGBA16_SINT,
313
316 TEX_FORMAT_RG32_TYPELESS,
317
320 TEX_FORMAT_RG32_FLOAT,
321
324 TEX_FORMAT_RG32_UINT,
325
328 TEX_FORMAT_RG32_SINT,
329
332 TEX_FORMAT_R32G8X24_TYPELESS,
333
336 TEX_FORMAT_D32_FLOAT_S8X24_UINT,
337
340 TEX_FORMAT_R32_FLOAT_X8X24_TYPELESS,
341
345 TEX_FORMAT_X32_TYPELESS_G8X24_UINT,
346
349 TEX_FORMAT_RGB10A2_TYPELESS,
350
353 TEX_FORMAT_RGB10A2_UNORM,
354
357 TEX_FORMAT_RGB10A2_UINT,
358
361 TEX_FORMAT_R11G11B10_FLOAT,
362
365 TEX_FORMAT_RGBA8_TYPELESS,
366
369 TEX_FORMAT_RGBA8_UNORM,
370
373 TEX_FORMAT_RGBA8_UNORM_SRGB,
374
377 TEX_FORMAT_RGBA8_UINT,
378
381 TEX_FORMAT_RGBA8_SNORM,
382
385 TEX_FORMAT_RGBA8_SINT,
386
389 TEX_FORMAT_RG16_TYPELESS,
390
393 TEX_FORMAT_RG16_FLOAT,
394
399 TEX_FORMAT_RG16_UNORM,
400
403 TEX_FORMAT_RG16_UINT,
404
409 TEX_FORMAT_RG16_SNORM,
410
413 TEX_FORMAT_RG16_SINT,
414
417 TEX_FORMAT_R32_TYPELESS,
418
421 TEX_FORMAT_D32_FLOAT,
422
425 TEX_FORMAT_R32_FLOAT,
426
429 TEX_FORMAT_R32_UINT,
430
433 TEX_FORMAT_R32_SINT,
434
437 TEX_FORMAT_R24G8_TYPELESS,
438
441 TEX_FORMAT_D24_UNORM_S8_UINT,
442
445 TEX_FORMAT_R24_UNORM_X8_TYPELESS,
446
450 TEX_FORMAT_X24_TYPELESS_G8_UINT,
451
454 TEX_FORMAT_RG8_TYPELESS,
455
458 TEX_FORMAT_RG8_UNORM,
459
462 TEX_FORMAT_RG8_UINT,
463
466 TEX_FORMAT_RG8_SNORM,
467
470 TEX_FORMAT_RG8_SINT,
471
474 TEX_FORMAT_R16_TYPELESS,
475
478 TEX_FORMAT_R16_FLOAT,
479
482 TEX_FORMAT_D16_UNORM,
483
488 TEX_FORMAT_R16_UNORM,
489
492 TEX_FORMAT_R16_UINT,
493
498 TEX_FORMAT_R16_SNORM,
499
502 TEX_FORMAT_R16_SINT,
503
506 TEX_FORMAT_R8_TYPELESS,
507
510 TEX_FORMAT_R8_UNORM,
511
514 TEX_FORMAT_R8_UINT,
515
518 TEX_FORMAT_R8_SNORM,
519
522 TEX_FORMAT_R8_SINT,
523
527 TEX_FORMAT_A8_UNORM,
528
532 TEX_FORMAT_R1_UNORM,
533
536 TEX_FORMAT_RGB9E5_SHAREDEXP,
537
541 TEX_FORMAT_RG8_B8G8_UNORM,
542
546 TEX_FORMAT_G8R8_G8B8_UNORM,
547
554 TEX_FORMAT_BC1_TYPELESS,
555
563 TEX_FORMAT_BC1_UNORM,
564
572 TEX_FORMAT_BC1_UNORM_SRGB,
573
580 TEX_FORMAT_BC2_TYPELESS,
581
589 TEX_FORMAT_BC2_UNORM,
590
598 TEX_FORMAT_BC2_UNORM_SRGB,
599
606 TEX_FORMAT_BC3_TYPELESS,
607
615 TEX_FORMAT_BC3_UNORM,
616
624 TEX_FORMAT_BC3_UNORM_SRGB,
625
632 TEX_FORMAT_BC4_TYPELESS,
633
641 TEX_FORMAT_BC4_UNORM,
642
650 TEX_FORMAT_BC4_SNORM,
651
658 TEX_FORMAT_BC5_TYPELESS,
659
667 TEX_FORMAT_BC5_UNORM,
668
676 TEX_FORMAT_BC5_SNORM,
677
681 TEX_FORMAT_B5G6R5_UNORM,
682
686 TEX_FORMAT_B5G5R5A1_UNORM,
687
691 TEX_FORMAT_BGRA8_UNORM,
692
696 TEX_FORMAT_BGRX8_UNORM,
697
701 TEX_FORMAT_R10G10B10_XR_BIAS_A2_UNORM,
702
706 TEX_FORMAT_BGRA8_TYPELESS,
707
711 TEX_FORMAT_BGRA8_UNORM_SRGB,
712
716 TEX_FORMAT_BGRX8_TYPELESS,
717
721 TEX_FORMAT_BGRX8_UNORM_SRGB,
722
729 TEX_FORMAT_BC6H_TYPELESS,
730
737 TEX_FORMAT_BC6H_UF16,
738
745 TEX_FORMAT_BC6H_SF16,
746
753 TEX_FORMAT_BC7_TYPELESS,
754
761 TEX_FORMAT_BC7_UNORM,
762
769 TEX_FORMAT_BC7_UNORM_SRGB,
770
772 TEX_FORMAT_NUM_FORMATS
773 };
774
776
780 enum FILTER_TYPE : Int32
781 {
782 FILTER_TYPE_UNKNOWN = 0,
783 FILTER_TYPE_POINT,
784 FILTER_TYPE_LINEAR,
785 FILTER_TYPE_ANISOTROPIC,
786 FILTER_TYPE_COMPARISON_POINT,
787 FILTER_TYPE_COMPARISON_LINEAR,
788 FILTER_TYPE_COMPARISON_ANISOTROPIC,
789 FILTER_TYPE_MINIMUM_POINT,
790 FILTER_TYPE_MINIMUM_LINEAR,
791 FILTER_TYPE_MINIMUM_ANISOTROPIC,
792 FILTER_TYPE_MAXIMUM_POINT,
793 FILTER_TYPE_MAXIMUM_LINEAR,
794 FILTER_TYPE_MAXIMUM_ANISOTROPIC,
795 FILTER_TYPE_NUM_FILTERS
796 };
797
799
805 enum TEXTURE_ADDRESS_MODE : Int32
806 {
808 TEXTURE_ADDRESS_UNKNOWN = 0,
809
812 TEXTURE_ADDRESS_WRAP = 1,
813
816 TEXTURE_ADDRESS_MIRROR = 2,
817
821 TEXTURE_ADDRESS_CLAMP = 3,
822
826 TEXTURE_ADDRESS_BORDER = 4,
827
833 TEXTURE_ADDRESS_MIRROR_ONCE = 5,
834
836 TEXTURE_ADDRESS_NUM_MODES
837 };
838
840
847 enum COMPARISON_FUNCTION : Int32
848 {
850 COMPARISON_FUNC_UNKNOWN = 0,
851
854 COMPARISON_FUNC_NEVER,
855
858 COMPARISON_FUNC_LESS,
859
862 COMPARISON_FUNC_EQUAL,
863
866 COMPARISON_FUNC_LESS_EQUAL,
867
870 COMPARISON_FUNC_GREATER,
871
874 COMPARISON_FUNC_NOT_EQUAL,
875
878 COMPARISON_FUNC_GREATER_EQUAL,
879
882 COMPARISON_FUNC_ALWAYS,
883
885 COMPARISON_FUNC_NUM_FUNCTIONS
886 };
887
889
891 enum MISC_TEXTURE_FLAG
892 {
894
896 MISC_TEXTURE_FLAG_GENERATE_MIPS = 0x01
897 };
898
900 struct DeviceObjectAttribs
901 {
903 const Char* Name;
904
906 DeviceObjectAttribs() :
907 Name(nullptr)
908 {}
909 };
910
912 struct SwapChainDesc
913 {
915 Uint32 Width;
916
918 Uint32 Height;
919
921 TEXTURE_FORMAT ColorBufferFormat;
922
924 TEXTURE_FORMAT DepthBufferFormat;
925
927 Uint32 SamplesCount;
928
930 Uint32 BufferCount;
931
933 Float32 DefaultDepthValue;
934
936 Uint8 DefaultStencilValue;
937
939 SwapChainDesc() :
940 Width(0),
941 Height(0),
942 ColorBufferFormat( TEX_FORMAT_RGBA8_UNORM_SRGB ),
943 DepthBufferFormat( TEX_FORMAT_D32_FLOAT ),
944 SamplesCount( 1 ),
945 BufferCount( 2 ),
946 DefaultDepthValue(1.f),
947 DefaultStencilValue(0)
948 {}
949 };
950
952 struct EngineCreationAttribs
953 {
954 const Char* strShaderCachePath;
957 class IMemoryAllocator *pRawMemAllocator;
958 EngineCreationAttribs() :
959 strShaderCachePath(nullptr),
960 pRawMemAllocator(nullptr)
961 {}
962 };
963
965 struct EngineD3D12Attribs : public EngineCreationAttribs
966 {
968 Uint32 CPUDescriptorHeapAllocationSize[4] =
969 {
970 1024, // D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV
971 256, // D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER
972 128, // D3D12_DESCRIPTOR_HEAP_TYPE_RTV
973 64 // D3D12_DESCRIPTOR_HEAP_TYPE_DSV
974 };
975
977 Uint32 GPUDescriptorHeapSize[2] =
978 {
979 16384, // D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV
980 1024 // D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER
981 };
982
984 Uint32 GPUDescriptorHeapDynamicSize[2] =
985 {
986 4096, // D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV
987 1024 // D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER
988 };
989
992 Uint32 DynamicDescriptorAllocationChunkSize[2] =
993 {
994 128, // D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV
995 16 // D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER
996 };
997
1001 Uint32 NumCommandsToFlushCmdList = 256;
1002 };
1003
1005 struct Box
1006 {
1007 Uint32 MinX;
1008 Uint32 MaxX;
1009 Uint32 MinY;
1010 Uint32 MaxY;
1011 Uint32 MinZ;
1012 Uint32 MaxZ;
1013
1015 Box(Uint32 _MinX = 0, Uint32 _MaxX = 0,
1016 Uint32 _MinY = 0, Uint32 _MaxY = 0,
1017 Uint32 _MinZ = 0, Uint32 _MaxZ = 1) :
1018 MinX(_MinX), MaxX(_MaxX),
1019 MinY(_MinY), MaxY(_MaxY),
1020 MinZ(_MinZ), MaxZ(_MaxZ)
1021 {}
1022 };
1023
1024
1026 enum COMPONENT_TYPE : Int32
1027 {
1029 COMPONENT_TYPE_UNDEFINED,
1030
1032 COMPONENT_TYPE_FLOAT,
1033
1035 COMPONENT_TYPE_SNORM,
1036
1038 COMPONENT_TYPE_UNORM,
1039
1041 COMPONENT_TYPE_UNORM_SRGB,
1042
1044 COMPONENT_TYPE_SINT,
1045
1047 COMPONENT_TYPE_UINT,
1048
1050 COMPONENT_TYPE_DEPTH,
1051
1053 COMPONENT_TYPE_DEPTH_STENCIL,
1054
1056 COMPONENT_TYPE_COMPOUND,
1057
1059 COMPONENT_TYPE_COMPRESSED,
1060 };
1061
1065 struct TextureFormatAttribs
1066 {
1068 TEXTURE_FORMAT Format;
1069
1072 const Char *Name;
1073
1076 Uint32 ComponentSize;
1077
1079 Uint32 NumComponents;
1080
1082 COMPONENT_TYPE ComponentType;
1083
1085 explicit TextureFormatAttribs( TEXTURE_FORMAT _Format = TEX_FORMAT_UNKNOWN,
1086 const Char *_Name = "TEX_FORMAT_UNKNOWN",
1087 Uint32 _ComponentSize = 0,
1088 Uint32 _NumComponents = 0,
1089 COMPONENT_TYPE _ComponentType = COMPONENT_TYPE_UNDEFINED ) :
1090 Format(_Format),
1091 Name(_Name),
1092 ComponentSize(_ComponentSize),
1093 NumComponents(_NumComponents),
1094 ComponentType(_ComponentType)
1095 {}
1096 };
1097
1099
1101 struct TextureFormatInfo : public TextureFormatAttribs
1102 {
1104 bool Supported;
1105
1107 explicit TextureFormatInfo() :
1108 Supported(false)
1109 {}
1110 };
1111
1113
1115 struct TextureFormatInfoExt : TextureFormatInfo
1116 {
1118 bool Filterable;
1119
1121 bool ColorRenderable;
1122
1124 bool DepthRenderable;
1125
1127 bool Tex1DFmt;
1128
1130 bool Tex2DFmt;
1131
1133 bool Tex3DFmt;
1134
1136 bool TexCubeFmt;
1137
1139 bool SupportsMS;
1140
1142 explicit TextureFormatInfoExt() :
1143 Filterable(false),
1144 ColorRenderable(false),
1145 DepthRenderable(false),
1146 Tex1DFmt(false),
1147 Tex2DFmt(false),
1148 Tex3DFmt(false),
1149 TexCubeFmt(false),
1150 SupportsMS(false)
1151 {}
1152 };
1153 }
Diligent::COMPARISON_FUNC_LESS_EQUAL
Comparison passes if the source data is less than or equal to the destination data. Direct3D counterpart: D3D11_COMPARISON_LESS_EQUAL/D3D12_COMPARISON_FUNC_LESS_EQUAL. OpenGL counterpart: GL_LEQUAL.
Definition: GraphicsTypes.h:866
Diligent::TextureFormatInfoExt::Tex2DFmt
bool Tex2DFmt
Indicates if the format can be used to create a 2D texture.
Definition: GraphicsTypes.h:1130
Diligent::RESOURCE_DIM_BUFFER
Buffer.
Definition: GraphicsTypes.h:175
Diligent::TEXTURE_FORMAT
TEXTURE_FORMAT
Texture formats.
Definition: GraphicsTypes.h:244
Diligent::TEX_FORMAT_BC5_TYPELESS
Two-component typeless block-compression format with 1:2 compression ratio. D3D counterpart: DXGI_F...
Definition: GraphicsTypes.h:658
Diligent::VT_UINT8
Unsigned 8-bit integer.
Definition: GraphicsTypes.h:45
Diligent::SwapChainDesc
Swap chain description.
Definition: GraphicsTypes.h:912
Diligent::VT_INT8
Signed 8-bit integer.
Definition: GraphicsTypes.h:42
Diligent::COMPONENT_TYPE_UINT
Unsigned-integer component type.
Definition: GraphicsTypes.h:1047
Diligent::SwapChainDesc::DefaultStencilValue
Uint8 DefaultStencilValue
Default stencil value, which is used as optimized stencil clear value in D3D12.
Definition: GraphicsTypes.h:936
Diligent::RESOURCE_DIM_TEX_CUBE
Cube-map texture.
Definition: GraphicsTypes.h:181
Diligent::COMPARISON_FUNC_ALWAYS
Comparison always passes. Direct3D counterpart: D3D11_COMPARISON_ALWAYS/D3D12_COMPARISON_FUNC_ALWAY...
Definition: GraphicsTypes.h:882
Diligent::RESOURCE_DIM_TEX_2D
Two-dimensional texture.
Definition: GraphicsTypes.h:178
Diligent::BIND_RENDER_TARGET
A texture can be bound as a render target.
Definition: GraphicsTypes.h:71
Diligent::EngineD3D12Attribs::GPUDescriptorHeapDynamicSize
Uint32 GPUDescriptorHeapDynamicSize[2]
Size of the dynamic GPU descriptor heap region for different heap types.
Definition: GraphicsTypes.h:984
Diligent::RESOURCE_DIM_TEX_1D
One-dimensional texture.
Definition: GraphicsTypes.h:176
Diligent::TEX_FORMAT_RGBA16_UINT
Four-component 64-bit unsigned-integer format with 16-bit channels. D3D counterpart: DXGI_FORMAT_R1...
Definition: GraphicsTypes.h:301
Diligent::TEXTURE_VIEW_TYPE
TEXTURE_VIEW_TYPE
Texture view type.
Definition: GraphicsTypes.h:190
Diligent::TEX_FORMAT_BC3_UNORM
Four-component unsigned-normalized-integer block-compression format with 5 bits for R...
Definition: GraphicsTypes.h:615
Diligent::Box::MinZ
Uint32 MinZ
Minimal Z coordinate. Default value is 0.
Definition: GraphicsTypes.h:1011
Diligent::FILTER_TYPE_MAXIMUM_LINEAR
Maximum-linear filtering (DX12 only)
Definition: GraphicsTypes.h:793
Diligent::TEX_FORMAT_RG32_UINT
Two-component 64-bit unsigned-integer format with 32-bit channels. D3D counterpart: DXGI_FORMAT_R32...
Definition: GraphicsTypes.h:324
Diligent::TEX_FORMAT_R24G8_TYPELESS
Two-component 32-bit typeless format with 24 bits for R and 8 bits for G channel. D3D counterpart: ...
Definition: GraphicsTypes.h:437
Diligent::TEX_FORMAT_RGBA32_UINT
Four-component 128-bit unsigned-integer format with 32-bit channels. D3D counterpart: DXGI_FORMAT_R...
Definition: GraphicsTypes.h:259
Diligent::TEX_FORMAT_R8_UNORM
Single-component 8-bit unsigned-normalized-integer format. D3D counterpart: DXGI_FORMAT_R8_UNORM. OpenGL counterpart: GL_R8.
Definition: GraphicsTypes.h:510
Diligent::TEX_FORMAT_UNKNOWN
Unknown format.
Definition: GraphicsTypes.h:247
Diligent::BUFFER_VIEW_UNDEFINED
Undefined view type.
Definition: GraphicsTypes.h:222
Diligent::TEX_FORMAT_RG16_SNORM
Two-component 32-bit signed-normalized-integer format with 16-bit channels. D3D counterpart: DXGI_F...
Definition: GraphicsTypes.h:409
Diligent::VT_UNDEFINED
Undefined type.
Definition: GraphicsTypes.h:41
Diligent::TEX_FORMAT_BC5_UNORM
Two-component unsigned-normalized-integer block-compression format with 8 bits for R and 8 bits for G...
Definition: GraphicsTypes.h:667
Diligent::TEX_FORMAT_BC1_UNORM
Four-component unsigned-normalized-integer block-compression format with 5 bits for R...
Definition: GraphicsTypes.h:563
Diligent::TEX_FORMAT_R32_SINT
Single-component 32-bit signed-integer format. D3D counterpart: DXGI_FORMAT_R32_SINT. OpenGL counterpart: GL_R32I.
Definition: GraphicsTypes.h:433
Diligent::EngineD3D12Attribs::GPUDescriptorHeapSize
Uint32 GPUDescriptorHeapSize[2]
Size of the GPU descriptor heap allocations for different heap types.
Definition: GraphicsTypes.h:977
Diligent::COMPARISON_FUNC_EQUAL
Comparison passes if the source data is equal to the destination data. Direct3D counterpart: D3D11_C...
Definition: GraphicsTypes.h:862
Diligent::EngineD3D12Attribs::CPUDescriptorHeapAllocationSize
Uint32 CPUDescriptorHeapAllocationSize[4]
Size of the CPU descriptor heap allocations for different heap types.
Definition: GraphicsTypes.h:968
Diligent::TextureFormatAttribs::Format
TEXTURE_FORMAT Format
Texture format, see Diligent::TEXTURE_FORMAT for a list of supported texture formats.
Definition: GraphicsTypes.h:1068
Diligent::TEX_FORMAT_BGRX8_UNORM_SRGB
Four-component 32-bit unsigned-normalized sRGB format with 8 bits for each color channel, and 8 bits are unused. D3D counterpart: DXGI_FORMAT_B8G8R8X8_UNORM_SRGB.
Definition: GraphicsTypes.h:721
Diligent::RESOURCE_DIM_TEX_CUBE_ARRAY
Cube-map array texture.
Definition: GraphicsTypes.h:182
Diligent::TEXTURE_VIEW_NUM_VIEWS
Helper value that stores that total number of texture views.
Definition: GraphicsTypes.h:212
Diligent::BIND_SHADER_RESOURCE
A buffer or a texture can be bound as a shader resource.
Definition: GraphicsTypes.h:68
Diligent::TextureFormatInfoExt::SupportsMS
bool SupportsMS
Indicates if the format can be used to create a multisampled 2D texture.
Definition: GraphicsTypes.h:1139
Diligent::TEXTURE_ADDRESS_CLAMP
Texture coordinates outside the range [0.0, 1.0] are set to the texture color at 0.0 or 1.0, respectively. Direct3D Counterpart: D3D11_TEXTURE_ADDRESS_CLAMP/D3D12_TEXTURE_ADDRESS_MODE_CLAMP. OpenGL counterpart: GL_CLAMP_TO_EDGE.
Definition: GraphicsTypes.h:821
Diligent::COMPARISON_FUNC_NEVER
Comparison never passes. Direct3D counterpart: D3D11_COMPARISON_NEVER/D3D12_COMPARISON_FUNC_NEVER. OpenGL counterpart: GL_NEVER.
Definition: GraphicsTypes.h:854
Diligent::FILTER_TYPE_COMPARISON_ANISOTROPIC
Comparison-anisotropic filtering.
Definition: GraphicsTypes.h:788
Diligent::TextureFormatAttribs::ComponentSize
Uint32 ComponentSize
Size of one component in bytes (for instance, for TEX_FORMAT_RGBA8_UNORM format, this will be 1) For ...
Definition: GraphicsTypes.h:1076
Diligent::TEX_FORMAT_R32_FLOAT
Single-component 32-bit floating-point format. D3D counterpart: DXGI_FORMAT_R32_FLOAT. OpenGL counterpart: GL_R32F.
Definition: GraphicsTypes.h:425
Diligent::TextureFormatInfoExt::TexCubeFmt
bool TexCubeFmt
Indicates if the format can be used to create a cube texture.
Definition: GraphicsTypes.h:1136
Diligent::TEX_FORMAT_BC3_TYPELESS
Four-component typeless block-compression format with 1:4 compression ratio. D3D counterpart: DXGI_F...
Definition: GraphicsTypes.h:606
Diligent::VT_UINT16
Unsigned 16-bit integer.
Definition: GraphicsTypes.h:46
Diligent::TEX_FORMAT_RG8_SINT
Two-component 16-bit signed-integer format with 8-bit channels. D3D counterpart: DXGI_FORMAT_R8G8_S...
Definition: GraphicsTypes.h:470
Diligent::TEX_FORMAT_BC2_TYPELESS
Four component typeless block-compression format with 1:4 compression ratio. D3D counterpart: DXGI_F...
Definition: GraphicsTypes.h:580
Diligent::TextureFormatAttribs::Name
const Char * Name
Literal texture format name (for instance, for TEX_FORMAT_RGBA8_UNORM format, this will be "TEX_FORMA...
Definition: GraphicsTypes.h:1072
Diligent
Namespace for the OpenGL implementation of the graphics engine.
Definition: BufferD3D11Impl.h:34
Diligent::TEX_FORMAT_BGRA8_UNORM
Four-component 32-bit unsigned-normalized-integer format with 8 bits for each channel. D3D counterpart: DXGI_FORMAT_B8G8R8A8_UNORM.
Definition: GraphicsTypes.h:691
Diligent::BUFFER_VIEW_UNORDERED_ACCESS
A buffer view will define an unordered access view that will be used for unordered read/write operati...
Definition: GraphicsTypes.h:230
Diligent::FILTER_TYPE_COMPARISON_POINT
Comparison-point filtering.
Definition: GraphicsTypes.h:786
Diligent::TEX_FORMAT_RG8_UINT
Two-component 16-bit unsigned-integer format with 8-bit channels. D3D counterpart: DXGI_FORMAT_R8G8...
Definition: GraphicsTypes.h:462
Diligent::TextureFormatAttribs::TextureFormatAttribs
TextureFormatAttribs(TEXTURE_FORMAT _Format=TEX_FORMAT_UNKNOWN, const Char *_Name="TEX_FORMAT_UNKNOWN", Uint32 _ComponentSize=0, Uint32 _NumComponents=0, COMPONENT_TYPE _ComponentType=COMPONENT_TYPE_UNDEFINED)
Initializes the structure.
Definition: GraphicsTypes.h:1085
Diligent::COMPONENT_TYPE_SINT
Signed-integer component type.
Definition: GraphicsTypes.h:1044
Diligent::TEX_FORMAT_X24_TYPELESS_G8_UINT
Two-component 32-bit format with 24 bits of unreferenced data and 8 bits of unsigned-integer data...
Definition: GraphicsTypes.h:450
Diligent::TextureFormatInfoExt::Filterable
bool Filterable
Indicates if the format can be filtered.
Definition: GraphicsTypes.h:1118
Diligent::TEXTURE_VIEW_UNDEFINED
Undefined view type.
Definition: GraphicsTypes.h:193
Diligent::COMPONENT_TYPE_SNORM
Signed-normalized-integer component type.
Definition: GraphicsTypes.h:1035
Diligent::COMPONENT_TYPE_FLOAT
Floating point component type.
Definition: GraphicsTypes.h:1032
Diligent::TEX_FORMAT_B5G5R5A1_UNORM
Four-component 16-bit unsigned-normalized-integer format with 5 bits for each color channel and 1-bit...
Definition: GraphicsTypes.h:686
Diligent::SwapChainDesc::BufferCount
Uint32 BufferCount
Number of buffers int the swap chain.
Definition: GraphicsTypes.h:930
Diligent::BIND_INDEX_BUFFER
A buffer can be bound as an index buffer.
Definition: GraphicsTypes.h:65
Diligent::TEX_FORMAT_RGB32_TYPELESS
Three-component 96-bit typeless format with 32-bit channels. D3D counterpart: DXGI_FORMAT_R32G32B32...
Definition: GraphicsTypes.h:268
Diligent::COMPONENT_TYPE_DEPTH
Depth component type.
Definition: GraphicsTypes.h:1050
Diligent::COMPARISON_FUNC_GREATER
Comparison passes if the source data is greater than the destination data. Direct3D counterpart: 3D1...
Definition: GraphicsTypes.h:870
Diligent::TEX_FORMAT_RG8_UNORM
Two-component 16-bit unsigned-normalized-integer format with 8-bit channels. D3D counterpart: DXGI_...
Definition: GraphicsTypes.h:458
Diligent::Box::MaxY
Uint32 MaxY
Maximal Y coordinate. Default value is 0.
Definition: GraphicsTypes.h:1010
Diligent::TEX_FORMAT_RGBA16_UNORM
Four-component 64-bit unsigned-normalized-integer format with 16-bit channels. D3D counterpart: DXG...
Definition: GraphicsTypes.h:297
Diligent::TEX_FORMAT_RGB10A2_UINT
Four-component 32-bit unsigned-integer format with 10 bits for each color and 2 bits for alpha channe...
Definition: GraphicsTypes.h:357
Diligent::TEXTURE_ADDRESS_MODE
TEXTURE_ADDRESS_MODE
Texture address mode.
Definition: GraphicsTypes.h:805
Diligent::TEX_FORMAT_R32_UINT
Single-component 32-bit unsigned-integer format. D3D counterpart: DXGI_FORMAT_R32_UINT. OpenGL counterpart: GL_R32UI.
Definition: GraphicsTypes.h:429
Diligent::TEX_FORMAT_R16_UINT
Single-component 16-bit unsigned-integer format. D3D counterpart: DXGI_FORMAT_R16_UINT. OpenGL counterpart: GL_R16UI.
Definition: GraphicsTypes.h:492
Diligent::TEX_FORMAT_RGBA16_TYPELESS
Four-component 64-bit typeless format with 16-bit channels. D3D counterpart: DXGI_FORMAT_R16G16B16A...
Definition: GraphicsTypes.h:287
Diligent::TEX_FORMAT_BC4_UNORM
One-component unsigned-normalized-integer block-compression format with 8 bits for R channel...
Definition: GraphicsTypes.h:641
Diligent::TEX_FORMAT_R16_UNORM
Single-component 16-bit unsigned-normalized-integer format. D3D counterpart: DXGI_FORMAT_R16_UNORM...
Definition: GraphicsTypes.h:488
Diligent::BIND_FLAGS
BIND_FLAGS
Resource binding flags.
Definition: GraphicsTypes.h:61
Diligent::Box::Box
Box(Uint32 _MinX=0, Uint32 _MaxX=0, Uint32 _MinY=0, Uint32 _MaxY=0, Uint32 _MinZ=0, Uint32 _MaxZ=1)
Constructor intializes the structure.
Definition: GraphicsTypes.h:1015
Diligent::TEX_FORMAT_RGB10A2_UNORM
Four-component 32-bit unsigned-normalized-integer format with 10 bits for each color and 2 bits for a...
Definition: GraphicsTypes.h:353
Diligent::COMPONENT_TYPE_UNDEFINED
Undefined component type.
Definition: GraphicsTypes.h:1029
Diligent::MAP_FLAG_DISCARD
Previous contents of the resource will be undefined. This flag is only compatible with MAP_WRITE D3D...
Definition: GraphicsTypes.h:158
Diligent::TEX_FORMAT_RG16_FLOAT
Two-component 32-bit half-precision floating-point format with 16-bit channels. D3D counterpart: DX...
Definition: GraphicsTypes.h:393
Diligent::FILTER_TYPE_MINIMUM_LINEAR
Minimum-linear filtering (DX12 only)
Definition: GraphicsTypes.h:790
Diligent::TEX_FORMAT_D32_FLOAT
Single-component 32-bit floating-point depth format. D3D counterpart: DXGI_FORMAT_D32_FLOAT. OpenGL counterpart: GL_DEPTH_COMPONENT32F.
Definition: GraphicsTypes.h:421
Diligent::TEX_FORMAT_D16_UNORM
Single-component 16-bit unsigned-normalized-integer depth format. D3D counterpart: DXGI_FORMAT_D16_...
Definition: GraphicsTypes.h:482
Diligent::TEX_FORMAT_RGBA8_SNORM
Four-component 32-bit signed-normalized-integer format with 8-bit channels. D3D counterpart: DXGI_F...
Definition: GraphicsTypes.h:381
Diligent::TEX_FORMAT_A8_UNORM
Single-component 8-bit unsigned-normalized-integer format for alpha only. D3D counterpart: DXGI_FOR...
Definition: GraphicsTypes.h:527
Diligent::VT_INT32
Signed 32-bit integer.
Definition: GraphicsTypes.h:44
Diligent::TEX_FORMAT_B5G6R5_UNORM
Three-component 16-bit unsigned-normalized-integer format with 5 bits for blue, 6 bits for green...
Definition: GraphicsTypes.h:681
Diligent::TEX_FORMAT_BC6H_TYPELESS
Three-component typeless block-compression format. D3D counterpart: DXGI_FORMAT_BC6H_TYPELESS. OpenGL does not have direct counterpart, GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT is used. OpenGL: GL_ARB_texture_compression_bptc extension is required. Not supported in at least OpenGLES3.1.
Definition: GraphicsTypes.h:729
Diligent::FILTER_TYPE_COMPARISON_LINEAR
Comparison-linear filtering.
Definition: GraphicsTypes.h:787
Diligent::TEX_FORMAT_RGBA16_SINT
Four-component 64-bit signed-integer format with 16-bit channels. D3D counterpart: DXGI_FORMAT_R16G...
Definition: GraphicsTypes.h:312
Diligent::COMPARISON_FUNC_LESS
Comparison passes if the source data is less than the destination data. Direct3D counterpart: D3D11_...
Definition: GraphicsTypes.h:858
Diligent::TEX_FORMAT_R1_UNORM
Single-component 1-bit format. D3D counterpart: DXGI_FORMAT_R1_UNORM.
Definition: GraphicsTypes.h:532
Diligent::TEX_FORMAT_BC4_TYPELESS
One-component typeless block-compression format with 1:2 compression ratio. D3D counterpart: DXGI_F...
Definition: GraphicsTypes.h:632
Diligent::COMPONENT_TYPE
COMPONENT_TYPE
Describes texture format component type.
Definition: GraphicsTypes.h:1026
Diligent::DeviceObjectAttribs::DeviceObjectAttribs
DeviceObjectAttribs()
Constructor intializes the structure members with default values.
Definition: GraphicsTypes.h:906
Diligent::TEX_FORMAT_BC6H_UF16
Three-component unsigned half-precision floating-point format with 16 bits for each channel...
Definition: GraphicsTypes.h:737
Diligent::TEX_FORMAT_RG32_SINT
Two-component 64-bit signed-integer format with 32-bit channels. D3D counterpart: DXGI_FORMAT_R32G3...
Definition: GraphicsTypes.h:328
Diligent::TEX_FORMAT_RG8_TYPELESS
Two-component 16-bit typeless format with 8-bit channels. D3D counterpart: DXGI_FORMAT_R8G8_TYPELES...
Definition: GraphicsTypes.h:454
Diligent::TEX_FORMAT_RGBA8_UNORM
Four-component 32-bit unsigned-normalized-integer format with 8-bit channels. D3D counterpart: DXGI...
Definition: GraphicsTypes.h:369
Diligent::TEX_FORMAT_RG32_TYPELESS
Two-component 64-bit typeless format with 32-bit channels. D3D counterpart: DXGI_FORMAT_R32G32_TYPE...
Definition: GraphicsTypes.h:316
Diligent::TEX_FORMAT_R11G11B10_FLOAT
Three-component 32-bit format encoding three partial precision channels using 11 bits for red and gre...
Definition: GraphicsTypes.h:361
Diligent::TextureFormatInfo::Supported
bool Supported
Indicates if the format is supported by the device.
Definition: GraphicsTypes.h:1104
Diligent::BIND_VERTEX_BUFFER
A buffer can be bound as a vertex buffer.
Definition: GraphicsTypes.h:64
Diligent::TEX_FORMAT_RG8_B8G8_UNORM
Four-component unsigned-normalized integer format analogous to UYVY encoding. D3D counterpart: DXGI...
Definition: GraphicsTypes.h:541
Diligent::EngineD3D12Attribs::NumCommandsToFlushCmdList
Uint32 NumCommandsToFlushCmdList
Number of commands to flush the command list. Only draw/dispatch commands count towards the limit...
Definition: GraphicsTypes.h:1001
Diligent::TEX_FORMAT_BGRX8_UNORM
Four-component 32-bit unsigned-normalized-integer format with 8 bits for each color channel and 8 bit...
Definition: GraphicsTypes.h:696
Diligent::TEX_FORMAT_R16_FLOAT
Single-component 16-bit half-precisoin floating-point format. D3D counterpart: DXGI_FORMAT_R16_FLOA...
Definition: GraphicsTypes.h:478
Diligent::TEX_FORMAT_RGB32_FLOAT
Three-component 96-bit floating-point format with 32-bit channels. D3D counterpart: DXGI_FORMAT_R32...
Definition: GraphicsTypes.h:273
Diligent::TEX_FORMAT_BC2_UNORM
Four-component unsigned-normalized-integer block-compression format with 5 bits for R...
Definition: GraphicsTypes.h:589
Diligent::TEXTURE_ADDRESS_WRAP
Tile the texture at every integer junction. Direct3D Counterpart: D3D11_TEXTURE_ADDRESS_WRAP/D3D12_...
Definition: GraphicsTypes.h:812
Diligent::FILTER_TYPE_MAXIMUM_ANISOTROPIC
Maximum-anisotropic filtering (DX12 only)
Definition: GraphicsTypes.h:794
Diligent::TextureFormatInfoExt::Tex3DFmt
bool Tex3DFmt
Indicates if the format can be used to create a 3D texture.
Definition: GraphicsTypes.h:1133
Diligent::BIND_INDIRECT_DRAW_ARGS
A buffer can be bound as the source buffer for indirect draw commands.
Definition: GraphicsTypes.h:74
Diligent::TEX_FORMAT_RGBA8_SINT
Four-component 32-bit signed-integer format with 8-bit channels. D3D counterpart: DXGI_FORMAT_R8G8B...
Definition: GraphicsTypes.h:385
Diligent::FILTER_TYPE_UNKNOWN
Unknown filter type.
Definition: GraphicsTypes.h:782
Diligent::COMPARISON_FUNC_NOT_EQUAL
Comparison passes if the source data is not equal to the destination data. Direct3D counterpart: D3D...
Definition: GraphicsTypes.h:874
Diligent::TEX_FORMAT_BC1_TYPELESS
Four-component typeless block-compression format with 1:8 compression ratio. D3D counterpart: DXGI_F...
Definition: GraphicsTypes.h:554
Diligent::CPU_ACCESS_READ
A resource can be mapped for reading.
Definition: GraphicsTypes.h:114
Diligent::BIND_DEPTH_STENCIL
A texture can be bound as a depth-stencil target.
Definition: GraphicsTypes.h:72
Diligent::COMPONENT_TYPE_COMPOUND
Compound component type (example texture formats: TEX_FORMAT_R11G11B10_FLOAT or TEX_FORMAT_RGB9E5_SHA...
Definition: GraphicsTypes.h:1056
Diligent::TEX_FORMAT_BC1_UNORM_SRGB
Four-component unsigned-normalized-integer block-compression sRGB format with 5 bits for R...
Definition: GraphicsTypes.h:572
Diligent::TextureFormatInfoExt::ColorRenderable
bool ColorRenderable
Indicates if the format can be used as a render target format.
Definition: GraphicsTypes.h:1121
Diligent::Box
Box.
Definition: GraphicsTypes.h:1005
Diligent::TEXTURE_VIEW_DEPTH_STENCIL
A texture view will define a depth stencil view that will be used as the target for rendering operati...
Definition: GraphicsTypes.h:205
Diligent::USAGE_DEFAULT
A resource that requires read and write access by the GPU and can also be occasionally written by the...
Definition: GraphicsTypes.h:95
Diligent::TEX_FORMAT_R16_SINT
Single-component 16-bit signed-integer format. D3D counterpart: DXGI_FORMAT_R16_SINT. OpenGL counterpart: GL_R16I.
Definition: GraphicsTypes.h:502
Diligent::COMPONENT_TYPE_UNORM_SRGB
Unsigned-normalized-integer sRGB component type.
Definition: GraphicsTypes.h:1041
Diligent::VT_INT16
Signed 16-bit integer.
Definition: GraphicsTypes.h:43
Diligent::COMPARISON_FUNC_GREATER_EQUAL
Comparison passes if the source data is greater than or equal to the destination data. Direct3D counterpart: D3D11_COMPARISON_GREATER_EQUAL/D3D12_COMPARISON_FUNC_GREATER_EQUAL. OpenGL counterpart: GL_GEQUAL.
Definition: GraphicsTypes.h:878
Diligent::TEX_FORMAT_R24_UNORM_X8_TYPELESS
Two-component 32-bit format with 24 bits for unsigned-normalized-integer data and 8 bits of unreferen...
Definition: GraphicsTypes.h:445
Diligent::MAP_FLAG_DO_NOT_SYNCHRONIZE
The system will not synchronize pending operations before mapping the buffer. It is responsibility of...
Definition: GraphicsTypes.h:164
Diligent::TEX_FORMAT_RG32_FLOAT
Two-component 64-bit floating-point format with 32-bit channels. D3D counterpart: DXGI_FORMAT_R32G3...
Definition: GraphicsTypes.h:320
Diligent::FILTER_TYPE_MAXIMUM_POINT
Maximum-point filtering (DX12 only)
Definition: GraphicsTypes.h:792
Diligent::TEXTURE_ADDRESS_NUM_MODES
Helper value that stores the total number of texture address modes in the enumeration.
Definition: GraphicsTypes.h:836
Diligent::MISC_TEXTURE_FLAG
MISC_TEXTURE_FLAG
Miscellaneous texture flags.
Definition: GraphicsTypes.h:891
Diligent::USAGE_STATIC
A resource that can only be read by the GPU. It cannot be written by the GPU, and cannot be accessed ...
Definition: GraphicsTypes.h:90
Diligent::TEX_FORMAT_RG16_SINT
Two-component 32-bit signed-integer format with 16-bit channels. D3D counterpart: DXGI_FORMAT_R16G1...
Definition: GraphicsTypes.h:413
Diligent::TEX_FORMAT_RGBA16_SNORM
Four-component 64-bit signed-normalized-integer format with 16-bit channels. D3D counterpart: DXGI_...
Definition: GraphicsTypes.h:308
Diligent::VALUE_TYPE
VALUE_TYPE
Value type.
Definition: GraphicsTypes.h:39
Diligent::Box::MinX
Uint32 MinX
Minimal X coordinate. Default value is 0.
Definition: GraphicsTypes.h:1007
Diligent::CPU_ACCESS_FLAG
CPU_ACCESS_FLAG
Allowed CPU access mode flags when mapping a resource.
Definition: GraphicsTypes.h:112
Diligent::TEX_FORMAT_BC3_UNORM_SRGB
Four-component unsigned-normalized-integer block-compression sRGB format with 5 bits for R...
Definition: GraphicsTypes.h:624
Diligent::TEX_FORMAT_BC4_SNORM
One-component signed-normalized-integer block-compression format with 8 bits for R channel...
Definition: GraphicsTypes.h:650
Diligent::EngineCreationAttribs
Engine creation attibutes.
Definition: GraphicsTypes.h:952
Diligent::TEXTURE_ADDRESS_BORDER
Texture coordinates outside the range [0.0, 1.0] are set to the border color specified specified in S...
Definition: GraphicsTypes.h:826
Diligent::TextureFormatAttribs
Describes invariant texture format attributes. These attributes are intrinsic to the texture format i...
Definition: GraphicsTypes.h:1065
Diligent::SwapChainDesc::DefaultDepthValue
Float32 DefaultDepthValue
Default depth value, which is used as optimized depth clear value in D3D12.
Definition: GraphicsTypes.h:933
Diligent::DeviceObjectAttribs::Name
const Char * Name
Object name.
Definition: GraphicsTypes.h:903
Diligent::COMPARISON_FUNC_UNKNOWN
Unknown comparison function.
Definition: GraphicsTypes.h:850
Diligent::SwapChainDesc::SwapChainDesc
SwapChainDesc()
Constructor intializes the structure members with default values.
Definition: GraphicsTypes.h:939
Diligent::MAP_FLAG_DO_NOT_WAIT
Specifies that map operation should not wait until previous command that using the same resource comp...
Definition: GraphicsTypes.h:153
Diligent::COMPONENT_TYPE_COMPRESSED
Compressed component type.
Definition: GraphicsTypes.h:1059
Diligent::TextureFormatInfo::TextureFormatInfo
TextureFormatInfo()
Initializes the structure with default values.
Definition: GraphicsTypes.h:1107
Diligent::MAP_WRITE
Resource is mapped for writing. D3D11 counterpart: D3D11_MAP_WRITE. OpenGL counterpart: GL_MAP_WRIT...
Definition: GraphicsTypes.h:133
Diligent::COMPONENT_TYPE_UNORM
Unsigned-normalized-integer component type.
Definition: GraphicsTypes.h:1038
Diligent::TextureFormatAttribs::ComponentType
COMPONENT_TYPE ComponentType
Component type, see Diligent::COMPONENT_TYPE for details.
Definition: GraphicsTypes.h:1082
Diligent::TEX_FORMAT_BC5_SNORM
Two-component signed-normalized-integer block-compression format with 8 bits for R and 8 bits for G c...
Definition: GraphicsTypes.h:676
Diligent::Box::MaxZ
Uint32 MaxZ
Maximal Z coordinate. Default value is 1.
Definition: GraphicsTypes.h:1012
Diligent::USAGE_CPU_ACCESSIBLE
A resource that facilitates transferring data from GPU to CPU. D3D11 Counterpart: D3D11_USAGE_STAGI...
Definition: GraphicsTypes.h:103
Diligent::TEX_FORMAT_RGB9E5_SHAREDEXP
Three partial-precision floating pointer numbers sharing single exponent encoded into a 32-bit value...
Definition: GraphicsTypes.h:536
Diligent::MAP_READ
Resource is mapped for reading. D3D11 counterpart: D3D11_MAP_READ. OpenGL counterpart: GL_MAP_READ_...
Definition: GraphicsTypes.h:129
Diligent::TEX_FORMAT_RG16_UINT
Two-component 32-bit unsigned-integer format with 16-bit channels. D3D counterpart: DXGI_FORMAT_R16...
Definition: GraphicsTypes.h:403
Diligent::TEX_FORMAT_G8R8_G8B8_UNORM
Four-component unsigned-normalized integer format analogous to YUY2 encoding. D3D counterpart: DXGI...
Definition: GraphicsTypes.h:546
Diligent::RESOURCE_DIM_TEX_1D_ARRAY
One-dimensional texture array.
Definition: GraphicsTypes.h:177
Diligent::TEX_FORMAT_RGB32_SINT
Three-component 96-bit signed-integer format with 32-bit channels. D3D counterpart: DXGI_FORMAT_R32...
Definition: GraphicsTypes.h:283
Diligent::TEX_FORMAT_BC7_TYPELESS
Three-component typeless block-compression format. D3D counterpart: DXGI_FORMAT_BC7_TYPELESS. OpenGL does not have direct counterpart, GL_COMPRESSED_RGBA_BPTC_UNORM is used. OpenGL: GL_ARB_texture_compression_bptc extension is required. Not supported in at least OpenGLES3.1.
Definition: GraphicsTypes.h:753
Diligent::FILTER_TYPE_POINT
Point filtering.
Definition: GraphicsTypes.h:783
Diligent::TEX_FORMAT_D32_FLOAT_S8X24_UINT
Two-component 64-bit format with 32-bit floating-point depth channel and 8-bit stencil channel...
Definition: GraphicsTypes.h:336
Diligent::TEX_FORMAT_RGBA8_UINT
Four-component 32-bit unsigned-integer format with 8-bit channels. D3D counterpart: DXGI_FORMAT_R8G...
Definition: GraphicsTypes.h:377
Diligent::VT_FLOAT16
Half-precision 16-bit floating point.
Definition: GraphicsTypes.h:48
Diligent::USAGE
USAGE
Resource usage.
Definition: GraphicsTypes.h:84
Diligent::TEX_FORMAT_BGRX8_TYPELESS
Four-component 32-bit typeless format that with 8 bits for each color channel, and 8 bits are unused...
Definition: GraphicsTypes.h:716
Diligent::BUFFER_VIEW_NUM_VIEWS
Helper value that stores that total number of buffer views.
Definition: GraphicsTypes.h:233
Diligent::MISC_TEXTURE_FLAG_GENERATE_MIPS
Allow automatic mipmap generation with ITextureView::GenerateMips()
Definition: GraphicsTypes.h:896
Diligent::TextureFormatAttribs::NumComponents
Uint32 NumComponents
Number of components.
Definition: GraphicsTypes.h:1079
Diligent::BIND_UNORDERED_ACCESS
A buffer or a texture can be bound as an unordered access view.
Definition: GraphicsTypes.h:73
Diligent::TEXTURE_ADDRESS_UNKNOWN
Unknown mode.
Definition: GraphicsTypes.h:808
Diligent::Box::MaxX
Uint32 MaxX
Maximal X coordinate. Default value is 0.
Definition: GraphicsTypes.h:1008
Diligent::VT_NUM_TYPES
Helper value storing total number of types in the enumeration.
Definition: GraphicsTypes.h:50
Diligent::TEX_FORMAT_BC6H_SF16
Three-channel signed half-precision floating-point format with 16 bits per each channel. D3D counterpart: DXGI_FORMAT_BC6H_SF16. OpenGL counterpart: GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT. OpenGL: GL_ARB_texture_compression_bptc extension is required. Not supported in at least OpenGLES3.1.
Definition: GraphicsTypes.h:745
Diligent::TEX_FORMAT_R8_SNORM
Single-component 8-bit signed-normalized-integer format. D3D counterpart: DXGI_FORMAT_R8_SNORM. OpenGL counterpart: GL_R8_SNORM.
Definition: GraphicsTypes.h:518
Diligent::RESOURCE_DIMENSION
RESOURCE_DIMENSION
Describes resource dimension.
Definition: GraphicsTypes.h:172
Diligent::COMPONENT_TYPE_DEPTH_STENCIL
Depth-stencil component type.
Definition: GraphicsTypes.h:1053
Diligent::TEX_FORMAT_BC7_UNORM
Three-component block-compression unsigned-normalized-integer format with 4 to 7 bits per color chann...
Definition: GraphicsTypes.h:761
Diligent::TextureFormatInfoExt
Extended texture format description.
Definition: GraphicsTypes.h:1115
Diligent::FILTER_TYPE_NUM_FILTERS
Helper value that stores the total number of filter types in the enumeration.
Definition: GraphicsTypes.h:795
Diligent::VT_FLOAT32
Full-precision 32-bit floating point.
Definition: GraphicsTypes.h:49
Diligent::FILTER_TYPE_MINIMUM_ANISOTROPIC
Minimum-anisotropic filtering (DX12 only)
Definition: GraphicsTypes.h:791
Diligent::BIND_STREAM_OUTPUT
A buffer can be bound as a target for stream output stage.
Definition: GraphicsTypes.h:70
Diligent::BUFFER_VIEW_SHADER_RESOURCE
A buffer view will define a shader resource view that will be used as the source for the shader read ...
Definition: GraphicsTypes.h:226
Diligent::TEX_FORMAT_RGBA8_UNORM_SRGB
Four-component 32-bit unsigned-normalized-integer sRGB format with 8-bit channels. D3D counterpart: DXGI_FORMAT_R8G8B8A8_UNORM_SRGB. OpenGL counterpart: GL_SRGB8_ALPHA8.
Definition: GraphicsTypes.h:373
Diligent::BIND_UNIFORM_BUFFER
A buffer can be bound as a uniform buffer.
Definition: GraphicsTypes.h:66
Diligent::DeviceObjectAttribs
Describes common device object attributes.
Definition: GraphicsTypes.h:900
Diligent::TEX_FORMAT_R8_TYPELESS
Single-component 8-bit typeless format. D3D counterpart: DXGI_FORMAT_R8_TYPELESS. OpenGL does not have direct counterpart, GL_R8 is used.
Definition: GraphicsTypes.h:506
Diligent::TEX_FORMAT_NUM_FORMATS
Helper member containing the total number of texture formats in the enumeration.
Definition: GraphicsTypes.h:772
Diligent::TEXTURE_VIEW_UNORDERED_ACCESS
A texture view will define an unordered access view that will be used for unordered read/write operat...
Definition: GraphicsTypes.h:209
Diligent::FILTER_TYPE
FILTER_TYPE
Filter type.
Definition: GraphicsTypes.h:780
Diligent::RESOURCE_DIM_TEX_3D
Three-dimensional texture.
Definition: GraphicsTypes.h:180
Diligent::SwapChainDesc::DepthBufferFormat
TEXTURE_FORMAT DepthBufferFormat
Depth buffer format. Default value is TEX_FORMAT_D32_FLOAT.
Definition: GraphicsTypes.h:924
Diligent::TEX_FORMAT_RGB32_UINT
Three-component 96-bit unsigned-integer format with 32-bit channels. D3D counterpart: DXGI_FORMAT_R...
Definition: GraphicsTypes.h:278
Diligent::RESOURCE_DIM_NUM_DIMENSIONS
Helper value that stores the total number of texture types in the enumeration.
Definition: GraphicsTypes.h:183
Diligent::TEX_FORMAT_RG16_TYPELESS
Two-component 32-bit typeless format with 16-bit channels. D3D counterpart: DXGI_FORMAT_R16G16_TYPE...
Definition: GraphicsTypes.h:389
Diligent::CPU_ACCESS_WRITE
A resource can be mapped for writing.
Definition: GraphicsTypes.h:115
Diligent::TEX_FORMAT_X32_TYPELESS_G8X24_UINT
Two-component 64-bit format with 32-bit typeless data and 8-bit G channel. D3D counterpart: DXGI_FO...
Definition: GraphicsTypes.h:345
Diligent::VT_UINT32
Unsigned 32-bit integer.
Definition: GraphicsTypes.h:47
Diligent::TextureFormatInfoExt::TextureFormatInfoExt
TextureFormatInfoExt()
Initializes the structure with default values.
Definition: GraphicsTypes.h:1142
Diligent::TEX_FORMAT_BC7_UNORM_SRGB
Three-component block-compression unsigned-normalized-integer sRGB format with 4 to 7 bits per color ...
Definition: GraphicsTypes.h:769
Diligent::TEX_FORMAT_D24_UNORM_S8_UINT
Two-component 32-bit format with 24 bits for unsigned-normalized-integer depth and 8 bits for stencil...
Definition: GraphicsTypes.h:441
Diligent::EngineCreationAttribs::pRawMemAllocator
class IMemoryAllocator * pRawMemAllocator
Pointer to the raw memory allocator that will be used for all memory allocation/deallocation operatio...
Definition: GraphicsTypes.h:957
Diligent::SwapChainDesc::SamplesCount
Uint32 SamplesCount
Sample count. Default value is 1.
Definition: GraphicsTypes.h:927
Diligent::TextureFormatInfoExt::Tex1DFmt
bool Tex1DFmt
Indicates if the format can be used to create a 1D texture.
Definition: GraphicsTypes.h:1127
Diligent::TEX_FORMAT_RGB10A2_TYPELESS
Four-component 32-bit typeless format with 10 bits for RGB and 2 bits for alpha channel. D3D counterpart: DXGI_FORMAT_R10G10B10A2_TYPELESS. OpenGL does not have direct counterpart, GL_RGB10_A2 is used.
Definition: GraphicsTypes.h:349
Diligent::TEX_FORMAT_RGBA32_FLOAT
Four-component 128-bit floating-point format with 32-bit channels. D3D counterpart: DXGI_FORMAT_R32...
Definition: GraphicsTypes.h:255
Diligent::EngineD3D12Attribs::DynamicDescriptorAllocationChunkSize
Uint32 DynamicDescriptorAllocationChunkSize[2]
This is the size of the chunk that dynamic descriptor allocations manager request from the main GPU d...
Definition: GraphicsTypes.h:992
Diligent::TEX_FORMAT_RGBA32_SINT
Four-component 128-bit signed-integer format with 32-bit channels. D3D counterpart: DXGI_FORMAT_R32...
Definition: GraphicsTypes.h:263
Diligent::TEX_FORMAT_BGRA8_UNORM_SRGB
Four-component 32-bit unsigned-normalized sRGB format with 8 bits for each channel. D3D counterpart: DXGI_FORMAT_B8G8R8A8_UNORM_SRGB.
Definition: GraphicsTypes.h:711
Diligent::TEX_FORMAT_RG8_SNORM
Two-component 16-bit signed-normalized-integer format with 8-bit channels. D3D counterpart: DXGI_FO...
Definition: GraphicsTypes.h:466
Diligent::RESOURCE_DIM_UNDEFINED
Texture type undefined.
Definition: GraphicsTypes.h:174
Diligent::TEX_FORMAT_BC2_UNORM_SRGB
Four-component signed-normalized-integer block-compression sRGB format with 5 bits for R...
Definition: GraphicsTypes.h:598
Diligent::COMPARISON_FUNCTION
COMPARISON_FUNCTION
Comparison function.
Definition: GraphicsTypes.h:847
Diligent::TEX_FORMAT_R32G8X24_TYPELESS
Two-component 64-bit typeless format with 32-bits for R channel and 8 bits for G channel. D3D counterpart: DXGI_FORMAT_R32G8X24_TYPELESS. OpenGL does not have direct counterpart, GL_DEPTH32F_STENCIL8 is used.
Definition: GraphicsTypes.h:332
Diligent::TEXTURE_VIEW_SHADER_RESOURCE
A texture view will define a shader resource view that will be used as the source for the shader read...
Definition: GraphicsTypes.h:197
Diligent::TEX_FORMAT_RG16_UNORM
Two-component 32-bit unsigned-normalized-integer format with 16-bit channels. D3D counterpart: DXGI...
Definition: GraphicsTypes.h:399
Diligent::MAP_FLAGS
MAP_FLAGS
Special map flags.
Definition: GraphicsTypes.h:146
Diligent::MAP_READ_WRITE
Resource is mapped for reading and writing. D3D11 counterpart: D3D11_MAP_READ_WRITE. OpenGL counterpart: GL_MAP_WRITE_BIT | GL_MAP_READ_BIT.
Definition: GraphicsTypes.h:137
Diligent::Box::MinY
Uint32 MinY
Minimal Y coordinate. Default value is 0.
Definition: GraphicsTypes.h:1009
Diligent::TEX_FORMAT_R32_FLOAT_X8X24_TYPELESS
Two-component 64-bit format with 32-bit floating-point R channel and 8+24-bits of typeless data...
Definition: GraphicsTypes.h:340
Diligent::TextureFormatInfoExt::DepthRenderable
bool DepthRenderable
Indicates if the format can be used as a depth format.
Definition: GraphicsTypes.h:1124
Diligent::TEX_FORMAT_RGBA8_TYPELESS
Four-component 32-bit typeless format with 8-bit channels. D3D counterpart: DXGI_FORMAT_R8G8B8A8_TY...
Definition: GraphicsTypes.h:365
Diligent::TEXTURE_ADDRESS_MIRROR
Flip the texture at every integer junction. Direct3D Counterpart: D3D11_TEXTURE_ADDRESS_MIRROR/D3D1...
Definition: GraphicsTypes.h:816
Diligent::SwapChainDesc::ColorBufferFormat
TEXTURE_FORMAT ColorBufferFormat
Back buffer format. Default value is TEX_FORMAT_RGBA8_UNORM_SRGB.
Definition: GraphicsTypes.h:921
Diligent::EngineD3D12Attribs
Attributes specific to D3D12 engine.
Definition: GraphicsTypes.h:965
Diligent::TEX_FORMAT_RGBA16_FLOAT
Four-component 64-bit half-precision floating-point format with 16-bit channels. D3D counterpart: D...
Definition: GraphicsTypes.h:291
Diligent::SwapChainDesc::Height
Uint32 Height
The swap chain height. Default value is 0.
Definition: GraphicsTypes.h:918
Diligent::TEX_FORMAT_R10G10B10_XR_BIAS_A2_UNORM
Four-component 32-bit 2.8-biased fixed-point format with 10 bits for each color channel and 2-bit alp...
Definition: GraphicsTypes.h:701
Diligent::TEX_FORMAT_RGBA32_TYPELESS
Four-component 128-bit typeless format with 32-bit channels. D3D counterpart: DXGI_FORMAT_R32G32B32...
Definition: GraphicsTypes.h:251
Diligent::TEX_FORMAT_R8_UINT
Single-component 8-bit unsigned-integer format. D3D counterpart: DXGI_FORMAT_R8_UINT. OpenGL counterpart: GL_R8UI.
Definition: GraphicsTypes.h:514
Diligent::MAP_TYPE
MAP_TYPE
Resource mapping type.
Definition: GraphicsTypes.h:125
Diligent::SwapChainDesc::Width
Uint32 Width
The swap chain width. Default value is 0.
Definition: GraphicsTypes.h:915
Diligent::COMPARISON_FUNC_NUM_FUNCTIONS
Helper value that stores the total number of comparison functions in the enumeration.
Definition: GraphicsTypes.h:885
Diligent::TEX_FORMAT_R8_SINT
Single-component 8-bit signed-integer format. D3D counterpart: DXGI_FORMAT_R8_SINT. OpenGL counterpart: GL_R8I.
Definition: GraphicsTypes.h:522
Diligent::TEX_FORMAT_BGRA8_TYPELESS
Four-component 32-bit typeless format with 8 bits for each channel. D3D counterpart: DXGI_FORMAT_B8...
Definition: GraphicsTypes.h:706
Diligent::TEX_FORMAT_R16_SNORM
Single-component 16-bit signed-normalized-integer format. D3D counterpart: DXGI_FORMAT_R16_SNORM. OpenGL counterpart: GL_R16_SNORM. OpenGLES: GL_EXT_texture_norm16 extension is required.
Definition: GraphicsTypes.h:498
Diligent::TEXTURE_VIEW_RENDER_TARGET
A texture view will define a render target view that will be used as the target for rendering operati...
Definition: GraphicsTypes.h:201
Diligent::USAGE_DYNAMIC
A resource that can be read by the GPU and written at least once per frame by the CPU...
Definition: GraphicsTypes.h:99
Diligent::RESOURCE_DIM_TEX_2D_ARRAY
Two-dimensional texture array.
Definition: GraphicsTypes.h:179
Diligent::FILTER_TYPE_ANISOTROPIC
Anisotropic filtering.
Definition: GraphicsTypes.h:785
Diligent::BUFFER_VIEW_TYPE
BUFFER_VIEW_TYPE
Buffer view type.
Definition: GraphicsTypes.h:219
Diligent::FILTER_TYPE_MINIMUM_POINT
Minimum-point filtering (DX12 only)
Definition: GraphicsTypes.h:789
Diligent::TextureFormatInfo
Basic texture format description.
Definition: GraphicsTypes.h:1101
Diligent::TEX_FORMAT_R16_TYPELESS
Single-component 16-bit typeless format. D3D counterpart: DXGI_FORMAT_R16_TYPELESS. OpenGL does not have direct counterpart, GL_R16F is used.
Definition: GraphicsTypes.h:474
Diligent::TEX_FORMAT_R32_TYPELESS
Single-component 32-bit typeless format. D3D counterpart: DXGI_FORMAT_R32_TYPELESS. OpenGL does not have direct counterpart, GL_R32F is used.
Definition: GraphicsTypes.h:417
Diligent::FILTER_TYPE_LINEAR
Linear filtering.
Definition: GraphicsTypes.h:784
Diligent::TEXTURE_ADDRESS_MIRROR_ONCE
Similar to TEXTURE_ADDRESS_MIRROR and TEXTURE_ADDRESS_CLAMP. Takes the absolute value of the texture ...
Definition: GraphicsTypes.h:833
Diligent::BIND_NONE
Undefined binding.
Definition: GraphicsTypes.h:63