mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[spirv] Fix initial allocation size for compressed buffer
The old initial size was still for uint8.
This commit is contained in:
parent
ac3cd0b688
commit
da4baefdf0
@ -20,7 +20,7 @@ namespace dxvk {
|
|||||||
// the number of bytes it takes in the compressed buffer.
|
// the number of bytes it takes in the compressed buffer.
|
||||||
// This way, it can achieve a compression ratio of ~50%.
|
// This way, it can achieve a compression ratio of ~50%.
|
||||||
m_mask.reserve((m_size + NumMaskWords - 1) / NumMaskWords);
|
m_mask.reserve((m_size + NumMaskWords - 1) / NumMaskWords);
|
||||||
m_code.reserve(m_size * 4);
|
m_code.reserve((m_size + 1) / 2);
|
||||||
|
|
||||||
uint64_t dstWord = 0;
|
uint64_t dstWord = 0;
|
||||||
uint32_t dstShift = 0;
|
uint32_t dstShift = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user