mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader: Do not export vkd3d_shader_free_root_signature_v_1_0().
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
aa2d00929e
commit
d5d1ee4031
@ -569,7 +569,6 @@ void vkd3d_shader_free_shader_code(struct vkd3d_shader_code *code);
|
||||
int vkd3d_shader_parse_root_signature(const struct vkd3d_shader_code *dxbc,
|
||||
struct vkd3d_versioned_root_signature_desc *root_signature);
|
||||
void vkd3d_shader_free_root_signature(struct vkd3d_versioned_root_signature_desc *root_signature);
|
||||
void vkd3d_shader_free_root_signature_v_1_0(struct vkd3d_root_signature_desc *root_signature);
|
||||
|
||||
/* FIXME: Add support for returning error messages (ID3DBlob). */
|
||||
int vkd3d_shader_serialize_root_signature(const struct vkd3d_versioned_root_signature_desc *root_signature,
|
||||
@ -602,7 +601,6 @@ typedef void (*PFN_vkd3d_shader_free_shader_code)(struct vkd3d_shader_code *code
|
||||
typedef int (*PFN_vkd3d_shader_parse_root_signature)(const struct vkd3d_shader_code *dxbc,
|
||||
struct vkd3d_versioned_root_signature_desc *root_signature);
|
||||
typedef void (*PFN_vkd3d_shader_free_root_signature)(struct vkd3d_versioned_root_signature_desc *root_signature);
|
||||
typedef void (*PFN_vkd3d_shader_free_root_signature_v_1_0)(struct vkd3d_root_signature_desc *root_signature);
|
||||
|
||||
typedef int (*PFN_vkd3d_shader_serialize_root_signature)(
|
||||
const struct vkd3d_versioned_root_signature_desc *root_signature, struct vkd3d_shader_code *dxbc);
|
||||
|
@ -5,7 +5,6 @@ global:
|
||||
vkd3d_shader_convert_root_signature;
|
||||
vkd3d_shader_find_signature_element;
|
||||
vkd3d_shader_free_root_signature;
|
||||
vkd3d_shader_free_root_signature_v_1_0;
|
||||
vkd3d_shader_free_shader_code;
|
||||
vkd3d_shader_free_shader_signature;
|
||||
vkd3d_shader_parse_input_signature;
|
||||
|
@ -327,7 +327,7 @@ void vkd3d_shader_free_shader_code(struct vkd3d_shader_code *shader_code)
|
||||
vkd3d_free((void *)shader_code->code);
|
||||
}
|
||||
|
||||
void vkd3d_shader_free_root_signature_v_1_0(struct vkd3d_root_signature_desc *root_signature)
|
||||
static void vkd3d_shader_free_root_signature_v_1_0(struct vkd3d_root_signature_desc *root_signature)
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
@ -344,28 +344,10 @@ void vkd3d_shader_free_root_signature_v_1_0(struct vkd3d_root_signature_desc *ro
|
||||
memset(root_signature, 0, sizeof(*root_signature));
|
||||
}
|
||||
|
||||
void vkd3d_shader_free_root_signature(struct vkd3d_versioned_root_signature_desc *desc)
|
||||
static void vkd3d_shader_free_root_signature_v_1_1(struct vkd3d_root_signature_desc1 *root_signature)
|
||||
{
|
||||
struct vkd3d_root_signature_desc1 *root_signature;
|
||||
unsigned int i;
|
||||
|
||||
if (!desc->version)
|
||||
return;
|
||||
|
||||
if (desc->version == VKD3D_ROOT_SIGNATURE_VERSION_1_0)
|
||||
{
|
||||
vkd3d_shader_free_root_signature_v_1_0(&desc->u.v_1_0);
|
||||
return;
|
||||
}
|
||||
|
||||
if (desc->version != VKD3D_ROOT_SIGNATURE_VERSION_1_1)
|
||||
{
|
||||
FIXME("Unknown version %#x.\n", desc->version);
|
||||
return;
|
||||
}
|
||||
|
||||
root_signature = &desc->u.v_1_1;
|
||||
|
||||
for (i = 0; i < root_signature->parameter_count; ++i)
|
||||
{
|
||||
const struct vkd3d_root_parameter1 *parameter = &root_signature->parameters[i];
|
||||
@ -379,6 +361,25 @@ void vkd3d_shader_free_root_signature(struct vkd3d_versioned_root_signature_desc
|
||||
memset(root_signature, 0, sizeof(*root_signature));
|
||||
}
|
||||
|
||||
void vkd3d_shader_free_root_signature(struct vkd3d_versioned_root_signature_desc *desc)
|
||||
{
|
||||
if (desc->version == VKD3D_ROOT_SIGNATURE_VERSION_1_0)
|
||||
{
|
||||
vkd3d_shader_free_root_signature_v_1_0(&desc->u.v_1_0);
|
||||
}
|
||||
else if (desc->version == VKD3D_ROOT_SIGNATURE_VERSION_1_1)
|
||||
{
|
||||
vkd3d_shader_free_root_signature_v_1_1(&desc->u.v_1_1);
|
||||
}
|
||||
else if (desc->version)
|
||||
{
|
||||
FIXME("Unknown version %#x.\n", desc->version);
|
||||
return;
|
||||
}
|
||||
|
||||
desc->version = 0;
|
||||
}
|
||||
|
||||
int vkd3d_shader_parse_input_signature(const struct vkd3d_shader_code *dxbc,
|
||||
struct vkd3d_shader_signature *signature)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user