X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fpixelformat_backend.h;fp=source%2Fbackends%2Fvulkan%2Fpixelformat_backend.h;h=8641824e1520a1a9804506fc5bd58e1b07d2d80f;hb=99ca354f18119f82f1adeca100cd665a8f640317;hp=0000000000000000000000000000000000000000;hpb=4cd245dafe6a7ee5c93edca5aee2d146f1155309;p=libs%2Fgl.git diff --git a/source/backends/vulkan/pixelformat_backend.h b/source/backends/vulkan/pixelformat_backend.h new file mode 100644 index 00000000..8641824e --- /dev/null +++ b/source/backends/vulkan/pixelformat_backend.h @@ -0,0 +1,19 @@ +#ifndef MSP_GL_PIXELFORMAT_BACKEND_H_ +#define MSP_GL_PIXELFORMAT_BACKEND_H_ + +#ifndef MSP_GL_PIXELFORMAT_H_ +#error "pixelformat_backend.h requires pixelformat.h" +#endif + +namespace Msp { +namespace GL { + +unsigned get_vulkan_pixelformat(PixelFormat); +unsigned get_vulkan_aspect(PixelComponents); +PixelFormat pixelformat_from_vulkan(unsigned); +const unsigned *get_vulkan_swizzle(ComponentSwizzle); + +} // namespace GL +} // namespace Msp + +#endif