mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Rename the vkd3d_component_type enumeration to vkd3d_shader_component_type.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e4690d51cc
commit
2da59a1056
@ -639,16 +639,15 @@ struct vkd3d_shader_scan_info
|
||||
unsigned int descriptor_count;
|
||||
};
|
||||
|
||||
enum vkd3d_component_type
|
||||
enum vkd3d_shader_component_type
|
||||
{
|
||||
VKD3D_TYPE_VOID = 0,
|
||||
VKD3D_TYPE_UINT = 1,
|
||||
VKD3D_TYPE_INT = 2,
|
||||
VKD3D_TYPE_FLOAT = 3,
|
||||
VKD3D_TYPE_BOOL,
|
||||
VKD3D_TYPE_COUNT,
|
||||
VKD3D_SHADER_COMPONENT_VOID = 0x0,
|
||||
VKD3D_SHADER_COMPONENT_UINT = 0x1,
|
||||
VKD3D_SHADER_COMPONENT_INT = 0x2,
|
||||
VKD3D_SHADER_COMPONENT_FLOAT = 0x3,
|
||||
VKD3D_SHADER_COMPONENT_BOOL = 0x4,
|
||||
|
||||
VKD3D_FORCE_32_BIT_ENUM(VKD3D_COMPONENT_TYPE),
|
||||
VKD3D_FORCE_32_BIT_ENUM(VKD3D_SHADER_COMPONENT_TYPE),
|
||||
};
|
||||
|
||||
enum vkd3d_sysval_semantic
|
||||
@ -689,7 +688,7 @@ struct vkd3d_shader_signature_element
|
||||
unsigned int semantic_index;
|
||||
unsigned int stream_index;
|
||||
enum vkd3d_sysval_semantic sysval_semantic;
|
||||
enum vkd3d_component_type component_type;
|
||||
enum vkd3d_shader_component_type component_type;
|
||||
unsigned int register_index;
|
||||
unsigned int mask;
|
||||
enum vkd3d_shader_minimum_precision min_precision;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -819,7 +819,7 @@ void vkd3d_dxbc_compiler_destroy(struct vkd3d_dxbc_compiler *compiler) DECLSPEC_
|
||||
|
||||
void vkd3d_compute_dxbc_checksum(const void *dxbc, size_t size, uint32_t checksum[4]) DECLSPEC_HIDDEN;
|
||||
|
||||
static inline enum vkd3d_component_type vkd3d_component_type_from_data_type(
|
||||
static inline enum vkd3d_shader_component_type vkd3d_component_type_from_data_type(
|
||||
enum vkd3d_data_type data_type)
|
||||
{
|
||||
switch (data_type)
|
||||
@ -827,27 +827,27 @@ static inline enum vkd3d_component_type vkd3d_component_type_from_data_type(
|
||||
case VKD3D_DATA_FLOAT:
|
||||
case VKD3D_DATA_UNORM:
|
||||
case VKD3D_DATA_SNORM:
|
||||
return VKD3D_TYPE_FLOAT;
|
||||
return VKD3D_SHADER_COMPONENT_FLOAT;
|
||||
case VKD3D_DATA_UINT:
|
||||
return VKD3D_TYPE_UINT;
|
||||
return VKD3D_SHADER_COMPONENT_UINT;
|
||||
case VKD3D_DATA_INT:
|
||||
return VKD3D_TYPE_INT;
|
||||
return VKD3D_SHADER_COMPONENT_INT;
|
||||
default:
|
||||
FIXME("Unhandled data type %#x.\n", data_type);
|
||||
return VKD3D_TYPE_UINT;
|
||||
return VKD3D_SHADER_COMPONENT_UINT;
|
||||
}
|
||||
}
|
||||
|
||||
static inline enum vkd3d_data_type vkd3d_data_type_from_component_type(
|
||||
enum vkd3d_component_type component_type)
|
||||
enum vkd3d_shader_component_type component_type)
|
||||
{
|
||||
switch (component_type)
|
||||
{
|
||||
case VKD3D_TYPE_FLOAT:
|
||||
case VKD3D_SHADER_COMPONENT_FLOAT:
|
||||
return VKD3D_DATA_FLOAT;
|
||||
case VKD3D_TYPE_UINT:
|
||||
case VKD3D_SHADER_COMPONENT_UINT:
|
||||
return VKD3D_DATA_UINT;
|
||||
case VKD3D_TYPE_INT:
|
||||
case VKD3D_SHADER_COMPONENT_INT:
|
||||
return VKD3D_DATA_INT;
|
||||
default:
|
||||
FIXME("Unhandled component type %#x.\n", component_type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user