2024-10-20 00:53:16 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
struct ShaderCacheEntry
|
|
|
|
{
|
2024-11-06 13:38:29 +03:00
|
|
|
const uint64_t hash;
|
|
|
|
const uint32_t dxilOffset;
|
|
|
|
const uint32_t dxilSize;
|
|
|
|
const uint32_t spirvOffset;
|
|
|
|
const uint32_t spirvSize;
|
2024-11-29 23:30:48 +03:00
|
|
|
const uint32_t specConstantsMask;
|
|
|
|
struct GuestShader* guestShader;
|
2024-10-20 00:53:16 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
extern ShaderCacheEntry g_shaderCacheEntries[];
|
2024-11-06 13:38:29 +03:00
|
|
|
extern const size_t g_shaderCacheEntryCount;
|
2024-10-20 00:53:16 +03:00
|
|
|
|
2024-11-06 13:38:29 +03:00
|
|
|
extern const uint8_t g_compressedDxilCache[];
|
|
|
|
extern const size_t g_dxilCacheCompressedSize;
|
|
|
|
extern const size_t g_dxilCacheDecompressedSize;
|
2024-10-20 00:53:16 +03:00
|
|
|
|
2024-11-06 13:38:29 +03:00
|
|
|
extern const uint8_t g_compressedSpirvCache[];
|
|
|
|
extern const size_t g_spirvCacheCompressedSize;
|
|
|
|
extern const size_t g_spirvCacheDecompressedSize;
|