SamplerInfo: Add LOD bias and border color
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user