mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:07:35 +00:00
LibSoftGPU: Announce NPOT texture support via DeviceInfo struct
This commit is contained in:
parent
0367893e53
commit
5505f353e8
2 changed files with 2 additions and 0 deletions
|
@ -605,6 +605,7 @@ DeviceInfo Device::info() const
|
||||||
.num_texture_units = NUM_SAMPLERS,
|
.num_texture_units = NUM_SAMPLERS,
|
||||||
.num_lights = NUM_LIGHTS,
|
.num_lights = NUM_LIGHTS,
|
||||||
.stencil_bits = sizeof(u8) * 8,
|
.stencil_bits = sizeof(u8) * 8,
|
||||||
|
.supports_npot_textures = true,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ struct DeviceInfo final {
|
||||||
unsigned num_texture_units;
|
unsigned num_texture_units;
|
||||||
unsigned num_lights;
|
unsigned num_lights;
|
||||||
u8 stencil_bits;
|
u8 stencil_bits;
|
||||||
|
bool supports_npot_textures;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue