vkd3d: Implement vkd3d_shader_cache_put.

This commit is contained in:
Stefan Dösinger
2023-12-23 21:44:39 +03:00
committed by Alexandre Julliard
parent af33caf036
commit aad76f4ed2
Notes: Alexandre Julliard 2024-04-25 00:16:00 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/791
6 changed files with 146 additions and 3 deletions

View File

@@ -340,6 +340,11 @@ static inline int vkd3d_u32_compare(uint32_t x, uint32_t y)
return (x > y) - (x < y);
}
static inline int vkd3d_u64_compare(uint64_t x, uint64_t y)
{
return (x > y) - (x < y);
}
#define VKD3D_BITMAP_SIZE(x) (((x) + 0x1f) >> 5)
static inline bool bitmap_clear(uint32_t *map, unsigned int idx)

View File

@@ -53,6 +53,8 @@ enum vkd3d_result
VKD3D_ERROR_INVALID_SHADER = -4,
/** The operation is not implemented in this version of vkd3d. */
VKD3D_ERROR_NOT_IMPLEMENTED = -5,
/** The object or entry already exists. \since 1.12 */
VKD3D_ERROR_KEY_ALREADY_EXISTS = -6,
VKD3D_FORCE_32_BIT_ENUM(VKD3D_RESULT),
};