diff options
author | Greg Daniel <egdaniel@google.com> | 2017-08-04 09:34:44 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-04 19:53:55 +0000 |
commit | 4a081e2475fa69dd55fcace9f8e6d3166ea25ad1 (patch) | |
tree | a42a3b82ab0697237fe66e7dda836d07af8e443d /src/gpu/mtl/GrMtlUtil.h | |
parent | 21c3fb94deac8527719be74deff9e8fb8a490e23 (diff) |
Add GrMtlTexture classes
Adds support for basic Texture creation.
Bug: skia:
Change-Id: I9a3f15bef1c88054c19e952e231cad94ad69f296
Reviewed-on: https://skia-review.googlesource.com/30781
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/mtl/GrMtlUtil.h')
-rw-r--r-- | src/gpu/mtl/GrMtlUtil.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/mtl/GrMtlUtil.h b/src/gpu/mtl/GrMtlUtil.h index 78af7bf89f..a84a636511 100644 --- a/src/gpu/mtl/GrMtlUtil.h +++ b/src/gpu/mtl/GrMtlUtil.h @@ -22,5 +22,10 @@ bool GrPixelConfigToMTLFormat(GrPixelConfig config, MTLPixelFormat* format); */ GrPixelConfig GrMTLFormatToPixelConfig(MTLPixelFormat format); +/** + * Returns true if the given vulkan texture format is sRGB encoded. + * Also provides the non-sRGB version, if there is one. + */ +bool GrMTLFormatIsSRGB(MTLPixelFormat format, MTLPixelFormat* linearFormat); #endif |