mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Helpers for Texture byte size and ResourceFormat
public Methods MakeResourceFormat(MTL::PixelFormat format); GetByteSize(uint32_t width, uint32_t height, uint32_t depth, MTL::PixelFormat format, uint32_t mip); private helper Methods IsOneComponent(MTL::PixelFormat mtlFormat); IsTwoComponent(MTL::PixelFormat mtlFormat); IsThreeComponent(MTL::PixelFormat mtlFormat); IsFourComponent(MTL::PixelFormat mtlFormat); IsBlockFormat(MTL::PixelFormat mtlFormat); IsDepthOrStencilFormat(MTL::PixelFormat mtlFormat); IsUNormFormat(MTL::PixelFormat mtlFormat); IsSNormFormat(MTL::PixelFormat mtlFormat); IsFloatFormat(MTL::PixelFormat mtlFormat); IsUIntFormat(MTL::PixelFormat mtlFormat); IsSIntFormat(MTL::PixelFormat mtlFormat); IsSRGBFormat(MTL::PixelFormat mtlFormat); IsYUVFormat(MTL::PixelFormat format); GetBlockShape(MTL::PixelFormat format, uint32_t plane); GetPlaneByteSize(uint32_t width, uint32_t height, uint32_t depth, MTL::PixelFormat format, uint32_t mip, uint32_t plane);
This commit is contained in:
committed by
Baldur Karlsson
parent
5096d0244d
commit
b6787686d3
File diff suppressed because it is too large
Load Diff
@@ -303,3 +303,6 @@ DECLARE_REFLECTION_ENUM(MetalChunk);
|
||||
BlendMultiplier MakeBlendMultiplier(MTL::BlendFactor blend);
|
||||
BlendOperation MakeBlendOp(MTL::BlendOperation op);
|
||||
byte MakeWriteMask(MTL::ColorWriteMask mask);
|
||||
ResourceFormat MakeResourceFormat(MTL::PixelFormat mtlFormat);
|
||||
uint32_t GetByteSize(uint32_t width, uint32_t height, uint32_t depth, MTL::PixelFormat mtlFormat,
|
||||
uint32_t mip);
|
||||
|
||||
Reference in New Issue
Block a user