mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 20:28:32 +09:00
20 lines
1.1 KiB
C++
20 lines
1.1 KiB
C++
#pragma once
|
|
#include <Includes.h>
|
|
#include <MG_State/GLState/TextureState/TextureObject.h>
|
|
|
|
namespace MobileGL {
|
|
namespace MG_Util {
|
|
SizeT GetSizedInternalFormatSizeInBytes(TextureInternalFormat internal);
|
|
SizeT GetBaseInternalFormatComponentCount(TextureInternalFormat format);
|
|
SizeT GetSizedTexturePixelDataTypeSize(TexturePixelDataType type);
|
|
SizeT GetBaseTexturePixelDataTypeSize(TexturePixelDataType type);
|
|
// This should respect internal format more
|
|
SizeT GetInternalBytesPerPixel(TextureInternalFormat internalformat, TexturePixelDataType type);
|
|
// This should respect type more, representing data passed in
|
|
SizeT GetInputBytesPerPixel(TextureInputFormat inputFormat, TexturePixelDataType type);
|
|
SizeT CalculateInputTextureImageSize(TextureInputFormat inputFormat, TexturePixelDataType pixelDataType,
|
|
IntVec3 size);
|
|
ComponentSizes GetComponentSizesForInternalFormat(TextureInternalFormat internal);
|
|
} // namespace MG_Util
|
|
} // namespace MobileGL
|