vkd3d-shader: Rename the vkd3d_descriptor_range structure to vkd3d_shader_descriptor_range.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2020-07-14 15:52:52 +04:30 committed by Alexandre Julliard
parent 7c2120124b
commit de76e7c0b5
2 changed files with 8 additions and 8 deletions

View File

@ -428,7 +428,7 @@ enum vkd3d_shader_descriptor_range_type
VKD3D_FORCE_32_BIT_ENUM(VKD3D_SHADER_DESCRIPTOR_RANGE_TYPE), VKD3D_FORCE_32_BIT_ENUM(VKD3D_SHADER_DESCRIPTOR_RANGE_TYPE),
}; };
struct vkd3d_descriptor_range struct vkd3d_shader_descriptor_range
{ {
enum vkd3d_shader_descriptor_range_type range_type; enum vkd3d_shader_descriptor_range_type range_type;
unsigned int descriptor_count; unsigned int descriptor_count;
@ -440,7 +440,7 @@ struct vkd3d_descriptor_range
struct vkd3d_root_descriptor_table struct vkd3d_root_descriptor_table
{ {
unsigned int descriptor_range_count; unsigned int descriptor_range_count;
const struct vkd3d_descriptor_range *descriptor_ranges; const struct vkd3d_shader_descriptor_range *descriptor_ranges;
}; };
struct vkd3d_root_constants struct vkd3d_root_constants

View File

@ -2223,7 +2223,7 @@ struct root_signature_parser_context
}; };
static int shader_parse_descriptor_ranges(struct root_signature_parser_context *context, static int shader_parse_descriptor_ranges(struct root_signature_parser_context *context,
unsigned int offset, unsigned int count, struct vkd3d_descriptor_range *ranges) unsigned int offset, unsigned int count, struct vkd3d_shader_descriptor_range *ranges)
{ {
const char *ptr; const char *ptr;
unsigned int i; unsigned int i;
@ -2302,7 +2302,7 @@ static int shader_parse_descriptor_ranges1(struct root_signature_parser_context
static int shader_parse_descriptor_table(struct root_signature_parser_context *context, static int shader_parse_descriptor_table(struct root_signature_parser_context *context,
unsigned int offset, struct vkd3d_root_descriptor_table *table) unsigned int offset, struct vkd3d_root_descriptor_table *table)
{ {
struct vkd3d_descriptor_range *ranges; struct vkd3d_shader_descriptor_range *ranges;
unsigned int count; unsigned int count;
const char *ptr; const char *ptr;
@ -2809,7 +2809,7 @@ static int shader_write_root_signature_header(struct root_signature_writer_conte
static int shader_write_descriptor_ranges(struct root_signature_writer_context *context, static int shader_write_descriptor_ranges(struct root_signature_writer_context *context,
const struct vkd3d_root_descriptor_table *table) const struct vkd3d_root_descriptor_table *table)
{ {
const struct vkd3d_descriptor_range *ranges = table->descriptor_ranges; const struct vkd3d_shader_descriptor_range *ranges = table->descriptor_ranges;
unsigned int i; unsigned int i;
for (i = 0; i < table->descriptor_range_count; ++i) for (i = 0; i < table->descriptor_range_count; ++i)
@ -3044,7 +3044,7 @@ static int validate_descriptor_table_v_1_0(const struct vkd3d_root_descriptor_ta
for (i = 0; i < descriptor_table->descriptor_range_count; ++i) for (i = 0; i < descriptor_table->descriptor_range_count; ++i)
{ {
const struct vkd3d_descriptor_range *r = &descriptor_table->descriptor_ranges[i]; const struct vkd3d_shader_descriptor_range *r = &descriptor_table->descriptor_ranges[i];
if (r->range_type == VKD3D_SHADER_DESCRIPTOR_RANGE_TYPE_SRV if (r->range_type == VKD3D_SHADER_DESCRIPTOR_RANGE_TYPE_SRV
|| r->range_type == VKD3D_SHADER_DESCRIPTOR_RANGE_TYPE_UAV || r->range_type == VKD3D_SHADER_DESCRIPTOR_RANGE_TYPE_UAV
@ -3201,7 +3201,7 @@ static int convert_root_parameters_to_v_1_0(struct vkd3d_root_parameter *dst,
const struct vkd3d_root_parameter1 *src, unsigned int count) const struct vkd3d_root_parameter1 *src, unsigned int count)
{ {
const struct vkd3d_descriptor_range1 *ranges1; const struct vkd3d_descriptor_range1 *ranges1;
struct vkd3d_descriptor_range *ranges; struct vkd3d_shader_descriptor_range *ranges;
unsigned int i, j; unsigned int i, j;
int ret; int ret;
@ -3319,7 +3319,7 @@ static void free_descriptor_ranges1(const struct vkd3d_root_parameter1 *paramete
static int convert_root_parameters_to_v_1_1(struct vkd3d_root_parameter1 *dst, static int convert_root_parameters_to_v_1_1(struct vkd3d_root_parameter1 *dst,
const struct vkd3d_root_parameter *src, unsigned int count) const struct vkd3d_root_parameter *src, unsigned int count)
{ {
const struct vkd3d_descriptor_range *ranges; const struct vkd3d_shader_descriptor_range *ranges;
struct vkd3d_descriptor_range1 *ranges1; struct vkd3d_descriptor_range1 *ranges1;
unsigned int i, j; unsigned int i, j;
int ret; int ret;