GPU: Refactor texture samplers #105642
|
@ -138,7 +138,13 @@ struct MTLSamplerState {
|
|||
|
||||
operator uint() const
|
||||
{
|
||||
return uint(uint64_t(state));
|
||||
uint integer_representation = 0;
|
||||
integer_representation |= this->state.filtering;
|
||||
integer_representation |= this->state.wrapping_x << 8;
|
||||
integer_representation |= this->state.wrapping_y << 12;
|
||||
integer_representation |= this->state.custom_type << 16;
|
||||
integer_representation |= this->state.type << 24;
|
||||
return integer_representation;
|
||||
}
|
||||
|
||||
operator uint64_t() const
|
||||
|
|
Loading…
Reference in New Issue