SamplerInfo: Add LOD bias and border color
This commit is contained in:
parent
b34350e9e7
commit
b4c4ad4e76
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue