SamplerInfo: Add LOD bias and border color

This commit is contained in:
Dr. Chat 2017-03-14 23:33:22 -05:00
parent b34350e9e7
commit b4c4ad4e76
2 changed files with 5 additions and 0 deletions

View File

@ -42,6 +42,9 @@ bool SamplerInfo::Prepare(const xenos::xe_gpu_texture_fetch_t& fetch,
? static_cast<AnisoFilter>(fetch.aniso_filter)
: fetch_instr.attributes.aniso_filter;
out_info->border_color = static_cast<BorderColor>(fetch.border_color);
out_info->lod_bias = (fetch.lod_bias) / 32.f;
return true;
}

View File

@ -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,