vkd3d-shader: Make vkd3d_shader_hash public.

Prepare for meta struct to be serialized to a cache.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2022-01-20 16:29:48 +01:00
parent a2c1527acd
commit 8196b85408
2 changed files with 4 additions and 2 deletions

View File

@ -63,7 +63,9 @@ struct vkd3d_shader_meta
bool replaced;
bool uses_subgroup_size;
bool uses_native_16bit_operations;
bool padding;
};
STATIC_ASSERT(sizeof(struct vkd3d_shader_meta) == 32);
struct vkd3d_shader_code
{
@ -72,6 +74,8 @@ struct vkd3d_shader_code
struct vkd3d_shader_meta meta;
};
vkd3d_shader_hash_t vkd3d_shader_hash(const struct vkd3d_shader_code *shader);
enum vkd3d_shader_descriptor_type
{
VKD3D_SHADER_DESCRIPTOR_TYPE_UNKNOWN,

View File

@ -919,6 +919,4 @@ int vkd3d_shader_compile_dxil(const struct vkd3d_shader_code *dxbc,
const struct vkd3d_shader_interface_info *shader_interface_info,
const struct vkd3d_shader_compile_arguments *compiler_args);
vkd3d_shader_hash_t vkd3d_shader_hash(const struct vkd3d_shader_code *shader);
#endif /* __VKD3D_SHADER_PRIVATE_H */