Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
vkd3d
Manage
Activity
Members
Labels
Plan
Wiki
Bugzilla
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wine
vkd3d
Commits
1b45052c
Commit
1b45052c
authored
1 year ago
by
Martin Storsjö
Committed by
Alexandre Julliard
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
include: Add missing miscellaneous D3D12 constants.
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
61c40240
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!327
include: Add missing constants in vkd3d_d3d12.idl
Pipeline
#14636
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/vkd3d_d3d12.idl
+125
-0
125 additions, 0 deletions
include/vkd3d_d3d12.idl
with
125 additions
and
0 deletions
include/vkd3d_d3d12.idl
+
125
−
0
View file @
1b45052c
...
...
@@ -25,7 +25,13 @@ import "vkd3d_d3dcommon.idl";
cpp_quote
(
"#ifndef _D3D12_CONSTANTS"
)
cpp_quote
(
"#define _D3D12_CONSTANTS"
)
const
UINT
D3D12_16BIT_INDEX_STRIP_CUT_VALUE
=
0
xffff
;
const
UINT
D3D12_32BIT_INDEX_STRIP_CUT_VALUE
=
0
xffffffff
;
const
UINT
D3D12_8BIT_INDEX_STRIP_CUT_VALUE
=
0
xff
;
const
UINT
D3D12_APPEND_ALIGNED_ELEMENT
=
0
xffffffff
;
const
UINT
D3D12_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT
=
9
;
const
UINT
D3D12_CLIP_OR_CULL_DISTANCE_COUNT
=
8
;
const
UINT
D3D12_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT
=
2
;
const
UINT
D3D12_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT
=
14
;
const
UINT
D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS
=
4
;
const
UINT
D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT
=
32
;
...
...
@@ -125,14 +131,33 @@ cpp_quote("#define D3D12_DEFAULT_BLEND_FACTOR_ALPHA (1.0f)")
cpp_quote
(
"#define D3D12_DEFAULT_BLEND_FACTOR_BLUE (1.0f)"
)
cpp_quote
(
"#define D3D12_DEFAULT_BLEND_FACTOR_GREEN (1.0f)"
)
cpp_quote
(
"#define D3D12_DEFAULT_BLEND_FACTOR_RED (1.0f)"
)
cpp_quote
(
"#define D3D12_DEFAULT_BORDER_COLOR_COMPONENT (0.0f)"
)
const
UINT
D3D12_DEFAULT_DEPTH_BIAS
=
0
;
cpp_quote
(
"#define D3D12_DEFAULT_DEPTH_BIAS_CLAMP (0.0f)"
)
const
UINT
D3D12_DEFAULT_MAX_ANISOTROPY
=
16
;
cpp_quote
(
"#define D3D12_DEFAULT_MIP_LOD_BIAS (0.0f)"
)
const
UINT
D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT
=
4194304
;
const
UINT
D3D12_DEFAULT_RENDER_TARGET_ARRAY_INDEX
=
0
;
const
UINT
D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT
=
65536
;
const
UINT
D3D12_DEFAULT_SAMPLE_MASK
=
0
xffffffff
;
const
UINT
D3D12_DEFAULT_SCISSOR_ENDX
=
0
;
const
UINT
D3D12_DEFAULT_SCISSOR_ENDY
=
0
;
const
UINT
D3D12_DEFAULT_SCISSOR_STARTX
=
0
;
const
UINT
D3D12_DEFAULT_SCISSOR_STARTY
=
0
;
cpp_quote
(
"#define D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS (0.0f)"
)
const
UINT
D3D12_DEFAULT_STENCIL_READ_MASK
=
0
xff
;
const
UINT
D3D12_DEFAULT_STENCIL_REFERENCE
=
0
;
const
UINT
D3D12_DEFAULT_STENCIL_WRITE_MASK
=
0
xff
;
const
UINT
D3D12_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX
=
0
;
const
UINT
D3D12_DEFAULT_VIEWPORT_HEIGHT
=
0
;
cpp_quote
(
"#define D3D12_DEFAULT_VIEWPORT_MAX_DEPTH (0.0f)"
)
cpp_quote
(
"#define D3D12_DEFAULT_VIEWPORT_MIN_DEPTH (0.0f)"
)
const
UINT
D3D12_DEFAULT_VIEWPORT_TOPLEFTX
=
0
;
const
UINT
D3D12_DEFAULT_VIEWPORT_TOPLEFTY
=
0
;
const
UINT
D3D12_DEFAULT_VIEWPORT_WIDTH
=
0
;
const
UINT
D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND
=
0
xffffffff
;
const
UINT
D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_END
=
0
xfffffff7
;
const
UINT
D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_START
=
0
xfffffff0
;
const
UINT
D3D12_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS
=
3968
;
const
UINT
D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS
=
4
;
const
UINT
D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT
=
32
;
...
...
@@ -157,7 +182,19 @@ const UINT D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = 1;
const
UINT
D3D12_DS_OUTPUT_REGISTER_COMPONENTS
=
4
;
const
UINT
D3D12_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT
=
32
;
const
UINT
D3D12_DS_OUTPUT_REGISTER_COUNT
=
32
;
cpp_quote
(
"#define D3D12_FLOAT16_FUSED_TOLERANCE_IN_ULP (0.6)"
)
cpp_quote
(
"#define D3D12_FLOAT32_MAX (3.402823466e+38f)"
)
cpp_quote
(
"#define D3D12_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP (0.6f)"
)
cpp_quote
(
"#define D3D12_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR (2.4f)"
)
cpp_quote
(
"#define D3D12_FLOAT_TO_SRGB_EXPONENT_NUMERATOR (1.0f)"
)
cpp_quote
(
"#define D3D12_FLOAT_TO_SRGB_OFFSET (0.055f)"
)
cpp_quote
(
"#define D3D12_FLOAT_TO_SRGB_SCALE_1 (12.92f)"
)
cpp_quote
(
"#define D3D12_FLOAT_TO_SRGB_SCALE_2 (1.055f)"
)
cpp_quote
(
"#define D3D12_FLOAT_TO_SRGB_THRESHOLD (0.0031308f)"
)
cpp_quote
(
"#define D3D12_FTOI_INSTRUCTION_MAX_INPUT (2147483647.999f)"
)
cpp_quote
(
"#define D3D12_FTOI_INSTRUCTION_MIN_INPUT (-2147483648.999f)"
)
cpp_quote
(
"#define D3D12_FTOU_INSTRUCTION_MAX_INPUT (4294967295.999f)"
)
cpp_quote
(
"#define D3D12_FTOU_INSTRUCTION_MIN_INPUT (0.0f)"
)
const
UINT
D3D12_GS_INPUT_INSTANCE_ID_READS_PER_INST
=
2
;
const
UINT
D3D12_GS_INPUT_INSTANCE_ID_READ_PORTS
=
1
;
const
UINT
D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS
=
1
;
...
...
@@ -229,8 +266,40 @@ const UINT D3D12_IA_VERTEX_ID_BIT_COUNT = 32;
const
UINT
D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT
=
32
;
const
UINT
D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS
=
128
;
const
UINT
D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT
=
32
;
const
UINT
D3D12_INTEGER_DIVIDE_BY_ZERO_QUOTIENT
=
0
xffffffff
;
const
UINT
D3D12_INTEGER_DIVIDE_BY_ZERO_REMAINDER
=
0
xffffffff
;
const
UINT
D3D12_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL
=
0
xffffffff
;
const
UINT
D3D12_KEEP_UNORDERED_ACCESS_VIEWS
=
0
xffffffff
;
cpp_quote
(
"#define D3D12_LINEAR_GAMMA (1.0f)"
)
const
UINT
D3D12_MAJOR_VERSION
=
12
;
cpp_quote
(
"#define D3D12_MAX_BORDER_COLOR_COMPONENT (1.0f)"
)
cpp_quote
(
"#define D3D12_MAX_DEPTH (1.0f)"
)
const
UINT
D3D12_MAX_LIVE_STATIC_SAMPLERS
=
2032
;
const
UINT
D3D12_MAX_MAXANISOTROPY
=
16
;
const
UINT
D3D12_MAX_MULTISAMPLE_SAMPLE_COUNT
=
32
;
cpp_quote
(
"#define D3D12_MAX_POSITION_VALUE (3.402823466e+34f)"
)
const
UINT
D3D12_MAX_ROOT_COST
=
64
;
const
UINT
D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1
=
1000000
;
const
UINT
D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2
=
1000000
;
const
UINT
D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE
=
2048
;
const
UINT
D3D12_MAX_TEXTURE_DIMENSION_2_TO_EXP
=
17
;
const
UINT
D3D12_MAX_VIEW_INSTANCE_COUNT
=
4
;
const
UINT
D3D12_MINOR_VERSION
=
0
;
cpp_quote
(
"#define D3D12_MIN_BORDER_COLOR_COMPONENT (0.0f)"
)
cpp_quote
(
"#define D3D12_MIN_DEPTH (0.0f)"
)
const
UINT
D3D12_MIN_MAXANISOTROPY
=
0
;
cpp_quote
(
"#define D3D12_MIP_LOD_BIAS_MAX (15.99f)"
)
cpp_quote
(
"#define D3D12_MIP_LOD_BIAS_MIN (-16.0f)"
)
const
UINT
D3D12_MIP_LOD_FRACTIONAL_BIT_COUNT
=
8
;
const
UINT
D3D12_MIP_LOD_RANGE_BIT_COUNT
=
8
;
cpp_quote
(
"#define D3D12_MULTISAMPLE_ANTIALIAS_LINE_WIDTH (1.4f)"
)
const
UINT
D3D12_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT
=
0
;
const
UINT
D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_END
=
0
xffffffff
;
const
UINT
D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_START
=
0
xfffffff8
;
const
UINT
D3D12_PACKED_TILE
=
0
xffffffff
;
const
UINT
D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT
=
15
;
const
UINT
D3D12_PREVIEW_SDK_VERSION
=
702
;
const
UINT
D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT
=
16
;
const
UINT
D3D12_PS_CS_UAV_REGISTER_COMPONENTS
=
1
;
const
UINT
D3D12_PS_CS_UAV_REGISTER_COUNT
=
8
;
const
UINT
D3D12_PS_CS_UAV_REGISTER_READS_PER_INST
=
1
;
...
...
@@ -294,22 +363,75 @@ const UINT D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = 2048;
const
UINT
D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION
=
16384
;
const
UINT
D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION
=
2048
;
const
UINT
D3D12_REQ_TEXTURECUBE_DIMENSION
=
16384
;
const
UINT
D3D12_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL
=
0
;
const
UINT
D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES
=
0
xffffffff
;
const
UINT
D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT
=
2
;
const
UINT
D3D12_SDK_VERSION
=
602
;
const
UINT
D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES
=
32
;
const
UINT
D3D12_SHADER_MAJOR_VERSION
=
5
;
const
UINT
D3D12_SHADER_MAX_INSTANCES
=
65535
;
const
UINT
D3D12_SHADER_MAX_INTERFACES
=
253
;
const
UINT
D3D12_SHADER_MAX_INTERFACE_CALL_SITES
=
4096
;
const
UINT
D3D12_SHADER_MAX_TYPES
=
65535
;
const
UINT
D3D12_SHADER_MINOR_VERSION
=
1
;
const
UINT
D3D12_SHIFT_INSTRUCTION_PAD_VALUE
=
0
;
const
UINT
D3D12_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT
=
5
;
const
UINT
D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT
=
8
;
const
UINT
D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT
=
65536
;
const
UINT
D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT
=
4096
;
const
UINT
D3D12_SO_BUFFER_MAX_STRIDE_IN_BYTES
=
2048
;
const
UINT
D3D12_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES
=
512
;
const
UINT
D3D12_SO_BUFFER_SLOT_COUNT
=
4
;
const
UINT
D3D12_SO_DDI_REGISTER_INDEX_DENOTING_GAP
=
0
xffffffff
;
const
UINT
D3D12_SO_NO_RASTERIZED_STREAM
=
0
xffffffff
;
const
UINT
D3D12_SO_OUTPUT_COMPONENT_COUNT
=
128
;
const
UINT
D3D12_SO_STREAM_COUNT
=
4
;
const
UINT
D3D12_SPEC_DATE_DAY
=
14
;
const
UINT
D3D12_SPEC_DATE_MONTH
=
11
;
const
UINT
D3D12_SPEC_DATE_YEAR
=
2014
;
cpp_quote
(
"#define D3D12_SPEC_VERSION (1.16)"
)
cpp_quote
(
"#define D3D12_SRGB_GAMMA (2.2f)"
)
cpp_quote
(
"#define D3D12_SRGB_TO_FLOAT_DENOMINATOR_1 (12.92f)"
)
cpp_quote
(
"#define D3D12_SRGB_TO_FLOAT_DENOMINATOR_2 (1.055f)"
)
cpp_quote
(
"#define D3D12_SRGB_TO_FLOAT_EXPONENT (2.4f)"
)
cpp_quote
(
"#define D3D12_SRGB_TO_FLOAT_OFFSET (0.055f)"
)
cpp_quote
(
"#define D3D12_SRGB_TO_FLOAT_THRESHOLD (0.04045f)"
)
cpp_quote
(
"#define D3D12_SRGB_TO_FLOAT_TOLERANCE_IN_ULP (0.5f)"
)
const
UINT
D3D12_STANDARD_COMPONENT_BIT_COUNT
=
32
;
const
UINT
D3D12_STANDARD_COMPONENT_BIT_COUNT_DOUBLED
=
64
;
const
UINT
D3D12_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE
=
4
;
const
UINT
D3D12_STANDARD_PIXEL_COMPONENT_COUNT
=
128
;
const
UINT
D3D12_STANDARD_PIXEL_ELEMENT_COUNT
=
32
;
const
UINT
D3D12_STANDARD_VECTOR_SIZE
=
4
;
const
UINT
D3D12_STANDARD_VERTEX_ELEMENT_COUNT
=
32
;
const
UINT
D3D12_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT
=
64
;
const
UINT
D3D12_SUBPIXEL_FRACTIONAL_BIT_COUNT
=
8
;
const
UINT
D3D12_SUBTEXEL_FRACTIONAL_BIT_COUNT
=
8
;
const
UINT
D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_END
=
0
xffffffff
;
const
UINT
D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_START
=
0
xfffffff0
;
const
UINT
D3D12_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR
=
64
;
const
UINT
D3D12_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR
=
64
;
const
UINT
D3D12_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR
=
63
;
const
UINT
D3D12_TESSELLATOR_MAX_TESSELLATION_FACTOR
=
64
;
const
UINT
D3D12_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR
=
2
;
const
UINT
D3D12_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR
=
1
;
const
UINT
D3D12_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR
=
1
;
const
UINT
D3D12_TEXEL_ADDRESS_RANGE_BIT_COUNT
=
16
;
const
UINT
D3D12_TEXTURE_DATA_PITCH_ALIGNMENT
=
256
;
const
UINT
D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT
=
512
;
const
UINT
D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES
=
65536
;
const
UINT
D3D12_TRACKED_WORKLOAD_MAX_INSTANCES
=
32
;
const
UINT
D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT
=
4096
;
const
UINT
D3D12_UAV_SLOT_COUNT
=
64
;
const
UINT
D3D12_UNBOUND_MEMORY_ACCESS_RESULT
=
0
;
const
UINT
D3D12_VIDEO_DECODE_MAX_ARGUMENTS
=
10
;
const
UINT
D3D12_VIDEO_DECODE_MAX_HISTOGRAM_COMPONENTS
=
4
;
const
UINT
D3D12_VIDEO_DECODE_MIN_BITSTREAM_OFFSET_ALIGNMENT
=
256
;
const
UINT
D3D12_VIDEO_DECODE_MIN_HISTOGRAM_OFFSET_ALIGNMENT
=
256
;
const
UINT
D3D12_VIDEO_DECODE_STATUS_MACROBLOCKS_AFFECTED_UNKNOWN
=
0
xffffffff
;
const
UINT
D3D12_VIDEO_PROCESS_MAX_FILTERS
=
32
;
const
UINT
D3D12_VIDEO_PROCESS_STEREO_VIEWS
=
2
;
const
UINT
D3D12_VIEWPORT_AND_SCISSORRECT_MAX_INDEX
=
15
;
const
UINT
D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE
=
16
;
const
UINT
D3D12_VIEWPORT_BOUNDS_MAX
=
32767
;
const
INT
D3D12_VIEWPORT_BOUNDS_MIN
=
-
32768
;
...
...
@@ -321,6 +443,9 @@ const UINT D3D12_VS_INPUT_REGISTER_READ_PORTS = 1;
const
UINT
D3D12_VS_OUTPUT_REGISTER_COMPONENTS
=
4
;
const
UINT
D3D12_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT
=
32
;
const
UINT
D3D12_VS_OUTPUT_REGISTER_COUNT
=
32
;
const
UINT
D3D12_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT
=
10
;
const
UINT
D3D12_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP
=
25
;
const
UINT
D3D12_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP
=
25
;
cpp_quote
(
"#endif"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment