mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-14 18:58:29 +12:00
Latte: Refactor legacy OpenGL code for shader binding
This commit is contained in:
parent
dee764473d
commit
646835346c
14 changed files with 25 additions and 81 deletions
|
@ -227,11 +227,6 @@ sint32 RendererShaderVk::GetUniformLocation(const char* name)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void RendererShaderVk::SetUniform1iv(sint32 location, void* data, sint32 count)
|
||||
{
|
||||
cemu_assert_suspicious();
|
||||
}
|
||||
|
||||
void RendererShaderVk::SetUniform2fv(sint32 location, void* data, sint32 count)
|
||||
{
|
||||
cemu_assert_suspicious();
|
||||
|
|
|
@ -32,7 +32,6 @@ public:
|
|||
static void Shutdown();
|
||||
|
||||
sint32 GetUniformLocation(const char* name) override;
|
||||
void SetUniform1iv(sint32 location, void* data, sint32 count) override;
|
||||
void SetUniform2fv(sint32 location, void* data, sint32 count) override;
|
||||
void SetUniform4iv(sint32 location, void* data, sint32 count) override;
|
||||
VkShaderModule& GetShaderModule() { return m_shader_module; }
|
||||
|
|
|
@ -1090,17 +1090,6 @@ RendererShader* VulkanRenderer::shader_create(RendererShader::ShaderType type, u
|
|||
return new RendererShaderVk(type, baseHash, auxHash, isGameShader, isGfxPackShader, source);
|
||||
}
|
||||
|
||||
void VulkanRenderer::shader_bind(RendererShader* shader)
|
||||
{
|
||||
// does nothing on Vulkan
|
||||
// remove from main render backend and internalize into GL backend
|
||||
}
|
||||
|
||||
void VulkanRenderer::shader_unbind(RendererShader::ShaderType shaderType)
|
||||
{
|
||||
// does nothing on Vulkan
|
||||
}
|
||||
|
||||
bool VulkanRenderer::CheckDeviceExtensionSupport(const VkPhysicalDevice device, FeatureControl& info)
|
||||
{
|
||||
std::vector<VkExtensionProperties> availableDeviceExtensions;
|
||||
|
|
|
@ -350,8 +350,6 @@ public:
|
|||
void buffer_bindUniformBuffer(LatteConst::ShaderType shaderType, uint32 bufferIndex, uint32 offset, uint32 size) override;
|
||||
|
||||
RendererShader* shader_create(RendererShader::ShaderType type, uint64 baseHash, uint64 auxHash, const std::string& source, bool isGameShader, bool isGfxPackShader) override;
|
||||
void shader_bind(RendererShader* shader) override;
|
||||
void shader_unbind(RendererShader::ShaderType shaderType) override;
|
||||
|
||||
void* indexData_reserveIndexMemory(uint32 size, uint32& offset, uint32& bufferIndex) override;
|
||||
void indexData_uploadIndexMemory(uint32 offset, uint32 size) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue