mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-19 03:28:06 -05:00
VideoCore: Eliminate an unnecessary copy in the drawcall loop
This commit is contained in:
@ -25,7 +25,7 @@ namespace Pica {
|
||||
|
||||
namespace Shader {
|
||||
|
||||
OutputVertex OutputRegisters::ToVertex(const Regs::ShaderConfig& config) {
|
||||
OutputVertex OutputRegisters::ToVertex(const Regs::ShaderConfig& config) const {
|
||||
// Setup output data
|
||||
OutputVertex ret;
|
||||
// TODO(neobrain): Under some circumstances, up to 16 attributes may be output. We need to
|
||||
|
@ -85,7 +85,7 @@ struct OutputRegisters {
|
||||
|
||||
alignas(16) Math::Vec4<float24> value[16];
|
||||
|
||||
OutputVertex ToVertex(const Regs::ShaderConfig& config);
|
||||
OutputVertex ToVertex(const Regs::ShaderConfig& config) const;
|
||||
};
|
||||
static_assert(std::is_pod<OutputRegisters>::value, "Structure is not POD");
|
||||
|
||||
|
Reference in New Issue
Block a user