mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 05:38:31 +09:00
[Feat] (MG_Backend/DirectGLES|MG_Impl): Initial implementions of GetTexImage and ReadPixels.
This commit is contained in:
@@ -239,6 +239,12 @@ namespace MobileGL {
|
||||
}
|
||||
}
|
||||
|
||||
SizeT GetTexturePixelDataTypeSize(TexturePixelDataType type) {
|
||||
SizeT sizedPixelFormatSize = GetSizedTexturePixelDataTypeSize(type);
|
||||
if (sizedPixelFormatSize > 0) return sizedPixelFormatSize;
|
||||
return GetBaseTexturePixelDataTypeSize(type);
|
||||
}
|
||||
|
||||
SizeT GetInternalBytesPerPixel(TextureInternalFormat internalformat, TexturePixelDataType type) {
|
||||
SizeT sizedTextureFormatSize = GetSizedInternalFormatSizeInBytes(internalformat);
|
||||
if (sizedTextureFormatSize > 0) return sizedTextureFormatSize;
|
||||
|
||||
Reference in New Issue
Block a user