mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibGL+LibGPU+LibSoftGPU: Move ImageDataLayout.h to LibGPU
This commit is contained in:
parent
4e0643ae97
commit
54307a9cd3
4 changed files with 7 additions and 7 deletions
|
@ -60,7 +60,7 @@ void Texture2D::replace_sub_texture_data(GLuint lod, GLint xoffset, GLint yoffse
|
|||
int const physical_width = pixels_per_row > 0 ? pixels_per_row : width;
|
||||
size_t const physical_width_bytes = physical_width * pixel_size_bytes;
|
||||
|
||||
SoftGPU::ImageDataLayout layout;
|
||||
GPU::ImageDataLayout layout;
|
||||
layout.column_stride = pixel_size_bytes;
|
||||
layout.row_stride = physical_width_bytes + (byte_alignment - physical_width_bytes % byte_alignment) % byte_alignment;
|
||||
layout.depth_stride = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue