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:
parent
ae0e5bccdd
commit
ac1d505d14
@ -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]);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user