mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-12-28 11:25:37 +00:00
Review 1
This commit is contained in:
parent
fb54c38631
commit
9d8f793969
|
@ -1849,7 +1849,7 @@ private:
|
||||||
const Id coords = GetCoordinates(operation, Type::Float);
|
const Id coords = GetCoordinates(operation, Type::Float);
|
||||||
|
|
||||||
spv::ImageOperandsMask mask = spv::ImageOperandsMask::MaskNone;
|
spv::ImageOperandsMask mask = spv::ImageOperandsMask::MaskNone;
|
||||||
std::vector<Id> operands{};
|
std::vector<Id> operands;
|
||||||
Id texture{};
|
Id texture{};
|
||||||
|
|
||||||
if (!meta.aoffi.empty()) {
|
if (!meta.aoffi.empty()) {
|
||||||
|
@ -1938,7 +1938,7 @@ private:
|
||||||
const Id coords = GetCoordinates(operation, Type::Int);
|
const Id coords = GetCoordinates(operation, Type::Int);
|
||||||
|
|
||||||
spv::ImageOperandsMask mask = spv::ImageOperandsMask::MaskNone;
|
spv::ImageOperandsMask mask = spv::ImageOperandsMask::MaskNone;
|
||||||
std::vector<Id> operands{};
|
std::vector<Id> operands;
|
||||||
Id fetch;
|
Id fetch;
|
||||||
|
|
||||||
if (meta.lod && !meta.sampler.is_buffer) {
|
if (meta.lod && !meta.sampler.is_buffer) {
|
||||||
|
|
|
@ -829,7 +829,7 @@ Node4 ShaderIR::GetTldsCode(Instruction instr, TextureType texture_type, bool is
|
||||||
// When lod is used always is in gpr20
|
// When lod is used always is in gpr20
|
||||||
const Node lod = lod_enabled ? GetRegister(instr.gpr20) : Immediate(0);
|
const Node lod = lod_enabled ? GetRegister(instr.gpr20) : Immediate(0);
|
||||||
|
|
||||||
std::vector<Node> aoffi{};
|
std::vector<Node> aoffi;
|
||||||
if (aoffi_enabled) {
|
if (aoffi_enabled) {
|
||||||
aoffi = GetAoffiCoordinates(GetRegister(instr.gpr20), type_coord_count, false);
|
aoffi = GetAoffiCoordinates(GetRegister(instr.gpr20), type_coord_count, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue