mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-27 13:54:16 +01:00
[dxvk] Remove uniform data from shaders
No longer used
This commit is contained in:
parent
43f360d20c
commit
ec5bd04378
@ -47,7 +47,6 @@ namespace dxvk {
|
|||||||
const DxvkShaderCreateInfo& info,
|
const DxvkShaderCreateInfo& info,
|
||||||
SpirvCodeBuffer&& spirv)
|
SpirvCodeBuffer&& spirv)
|
||||||
: m_info(info), m_code(spirv), m_bindings(info.stage) {
|
: m_info(info), m_code(spirv), m_bindings(info.stage) {
|
||||||
m_info.uniformData = nullptr;
|
|
||||||
m_info.bindings = nullptr;
|
m_info.bindings = nullptr;
|
||||||
|
|
||||||
// Copy resource binding slot infos
|
// Copy resource binding slot infos
|
||||||
@ -66,13 +65,6 @@ namespace dxvk {
|
|||||||
m_bindings.addPushConstantRange(pushConst);
|
m_bindings.addPushConstantRange(pushConst);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy uniform buffer data
|
|
||||||
if (info.uniformSize) {
|
|
||||||
m_uniformData.resize(info.uniformSize);
|
|
||||||
std::memcpy(m_uniformData.data(), info.uniformData, info.uniformSize);
|
|
||||||
m_info.uniformData = m_uniformData.data();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Run an analysis pass over the SPIR-V code to gather some
|
// Run an analysis pass over the SPIR-V code to gather some
|
||||||
// info that we may need during pipeline compilation.
|
// info that we may need during pipeline compilation.
|
||||||
bool usesPushConstants = false;
|
bool usesPushConstants = false;
|
||||||
|
@ -54,9 +54,6 @@ namespace dxvk {
|
|||||||
/// Push constant range
|
/// Push constant range
|
||||||
VkShaderStageFlags pushConstStages = 0;
|
VkShaderStageFlags pushConstStages = 0;
|
||||||
uint32_t pushConstSize = 0;
|
uint32_t pushConstSize = 0;
|
||||||
/// Uniform buffer data
|
|
||||||
uint32_t uniformSize = 0;
|
|
||||||
const char* uniformData = nullptr;
|
|
||||||
/// Rasterized stream, or -1
|
/// Rasterized stream, or -1
|
||||||
int32_t xfbRasterizedStream = 0;
|
int32_t xfbRasterizedStream = 0;
|
||||||
/// Tess control patch vertex count
|
/// Tess control patch vertex count
|
||||||
@ -266,7 +263,6 @@ namespace dxvk {
|
|||||||
uint32_t m_specConstantMask = 0;
|
uint32_t m_specConstantMask = 0;
|
||||||
std::atomic<bool> m_needsLibraryCompile = { true };
|
std::atomic<bool> m_needsLibraryCompile = { true };
|
||||||
|
|
||||||
std::vector<char> m_uniformData;
|
|
||||||
std::vector<BindingOffsets> m_bindingOffsets;
|
std::vector<BindingOffsets> m_bindingOffsets;
|
||||||
|
|
||||||
DxvkBindingLayout m_bindings;
|
DxvkBindingLayout m_bindings;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user