1
Fork 0
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:
Stephan Unverwerth 2022-01-15 17:20:31 +01:00 committed by Andreas Kling
parent 0367893e53
commit 5505f353e8
2 changed files with 2 additions and 0 deletions

View file

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

View file

@ -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;
}; };
} }