1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 01:24:11 +01:00

[dxvk] Do not compute SHA-1 hash of generated shaders

We do not need this on this branch.
This commit is contained in:
Philip Rebohle 2018-05-04 00:16:39 +02:00
parent ae0e5bccdd
commit ac1d505d14
2 changed files with 0 additions and 16 deletions

View File

@ -46,11 +46,6 @@ namespace dxvk {
const DxvkInterfaceSlots& iface,
const SpirvCodeBuffer& code)
: m_stage(stage), m_code(code), m_interface(iface) {
// Compute shader hash once
m_hash = Sha1Hash::compute(
reinterpret_cast<const uint8_t*>(code.data()),
code.size());
// Write back resource slot infos
for (uint32_t i = 0; i < slotCount; i++)
m_slots.push_back(slotInfos[i]);

View File

@ -167,16 +167,6 @@ namespace dxvk {
*/
void read(std::istream& inputStream);
/**
* \brief Shader hash
*
* The SHA-1 hash of the generated SPIR-V shader.
* \returns SHA-1 hash of this shader
*/
Sha1Hash hash() const {
return m_hash;
}
/**
* \brief Sets the shader's debug name
*
@ -200,7 +190,6 @@ namespace dxvk {
VkShaderStageFlagBits m_stage;
SpirvCodeBuffer m_code;
Sha1Hash m_hash;
std::vector<DxvkResourceSlot> m_slots;
std::vector<size_t> m_idOffsets;