diff --git a/src/xenia/gpu/sampler_info.cc b/src/xenia/gpu/sampler_info.cc index 51733a110..0adefbd1b 100644 --- a/src/xenia/gpu/sampler_info.cc +++ b/src/xenia/gpu/sampler_info.cc @@ -42,6 +42,9 @@ bool SamplerInfo::Prepare(const xenos::xe_gpu_texture_fetch_t& fetch, ? static_cast(fetch.aniso_filter) : fetch_instr.attributes.aniso_filter; + out_info->border_color = static_cast(fetch.border_color); + out_info->lod_bias = (fetch.lod_bias) / 32.f; + return true; } diff --git a/src/xenia/gpu/sampler_info.h b/src/xenia/gpu/sampler_info.h index 1a4543893..57e3ceeac 100644 --- a/src/xenia/gpu/sampler_info.h +++ b/src/xenia/gpu/sampler_info.h @@ -24,6 +24,8 @@ struct SamplerInfo { ClampMode clamp_v; ClampMode clamp_w; AnisoFilter aniso_filter; + BorderColor border_color; + float lod_bias; static bool Prepare(const xenos::xe_gpu_texture_fetch_t& fetch, const ParsedTextureFetchInstruction& fetch_instr,