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:
parent
a2c1527acd
commit
8196b85408
|
@ -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,
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue