vkd3d-shader: Add mechanism to get vkd3d-shader implementation revision.
Not immediately useful, might be nuked later in development. Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
parent
e90b573896
commit
a3f1a0e3cd
|
@ -799,6 +799,8 @@ int vkd3d_shader_compile_dxil_export(const struct vkd3d_shader_code *dxil,
|
|||
uint32_t vkd3d_shader_compile_arguments_select_quirks(
|
||||
const struct vkd3d_shader_compile_arguments *args, vkd3d_shader_hash_t hash);
|
||||
|
||||
uint64_t vkd3d_shader_get_revision(void);
|
||||
|
||||
#endif /* VKD3D_SHADER_NO_PROTOTYPES */
|
||||
|
||||
/*
|
||||
|
|
|
@ -736,3 +736,12 @@ uint32_t vkd3d_shader_compile_arguments_select_quirks(
|
|||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint64_t vkd3d_shader_get_revision(void)
|
||||
{
|
||||
/* This is meant to be bumped every time a change is made to the shader compiler.
|
||||
* Might get nuked later ...
|
||||
* It's not immediately useful for invalidating pipeline caches, since that would mostly be covered
|
||||
* by vkd3d-proton Git hash. */
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue