mirror of https://github.com/cemu-project/Cemu.git
post-merge fixes
This commit is contained in:
parent
234a013111
commit
40219e204a
|
@ -146,7 +146,7 @@ void RendererOutputShader::SetUniformParameters(const LatteTextureView& texture_
|
|||
{
|
||||
sint32 effectiveWidth, effectiveHeight;
|
||||
texture_view.baseTexture->GetEffectiveSize(effectiveWidth, effectiveHeight, 0);
|
||||
auto setUniforms = [&](RendererShader* shader, const UniformLocations& locations){
|
||||
auto setUniforms = [&](const std::unique_ptr<RendererShader>& shader, const UniformLocations& locations){
|
||||
float res[2];
|
||||
if (locations.m_loc_textureSrcResolution != -1)
|
||||
{
|
||||
|
|
|
@ -236,10 +236,3 @@ public:
|
|||
|
||||
VkDescriptorSet descriptorSet{ VK_NULL_HANDLE };
|
||||
};
|
||||
|
||||
class VKRObjectSampler : public VKRDestructibleObject
|
||||
{
|
||||
public:
|
||||
~VKRObjectSampler() override;
|
||||
VkSampler sampler { VK_NULL_HANDLE };
|
||||
};
|
|
@ -3229,8 +3229,6 @@ VkDescriptorSetInfo::~VkDescriptorSetInfo()
|
|||
|
||||
auto renderer = VulkanRenderer::GetInstance();
|
||||
renderer->ReleaseDestructibleObject(m_vkObjDescriptorSet);
|
||||
for(auto& sampler : m_vkObjSamplers)
|
||||
renderer->ReleaseDestructibleObject(sampler);
|
||||
m_vkObjDescriptorSet = nullptr;
|
||||
}
|
||||
|
||||
|
@ -4147,9 +4145,3 @@ VKRObjectDescriptorSet::~VKRObjectDescriptorSet()
|
|||
vkFreeDescriptorSets(vkr->GetLogicalDevice(), vkr->GetDescriptorPool(), 1, &descriptorSet);
|
||||
performanceMonitor.vk.numDescriptorSets.decrement();
|
||||
}
|
||||
|
||||
VKRObjectSampler::~VKRObjectSampler()
|
||||
{
|
||||
auto vkr = VulkanRenderer::GetInstance();
|
||||
vkDestroySampler(vkr->GetLogicalDevice(), sampler, nullptr);
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@ struct VkSupportedFormatInfo_t
|
|||
struct VkDescriptorSetInfo
|
||||
{
|
||||
VKRObjectDescriptorSet* m_vkObjDescriptorSet{};
|
||||
std::vector<VKRObjectSampler*> m_vkObjSamplers{};
|
||||
|
||||
~VkDescriptorSetInfo();
|
||||
|
||||
|
|
|
@ -1167,8 +1167,6 @@ void VulkanRenderer::draw_prepareDescriptorSets(PipelineInfo* pipeline_info, VkD
|
|||
return nullptr;
|
||||
auto descriptorSetInfo = draw_getOrCreateDescriptorSet(pipeline_info, shader);
|
||||
descriptorSetInfo->m_vkObjDescriptorSet->flagForCurrentCommandBuffer();
|
||||
for (auto& sampler : descriptorSetInfo->m_vkObjSamplers)
|
||||
sampler->flagForCurrentCommandBuffer();
|
||||
return descriptorSetInfo;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue