Lines Matching refs:format
79 // Creates an invalid backend format.
85 static GrBackendFormat MakeGL(GrGLenum format, GrGLenum target) {
86 return GrBackendFormat(format, target);
91 static GrBackendFormat MakeVk(VkFormat format, bool willUseDRMFormatModifiers = false) {
92 return GrBackendFormat(format, GrVkYcbcrConversionInfo(), willUseDRMFormatModifiers);
100 static GrBackendFormat MakeDawn(wgpu::TextureFormat format) {
101 return GrBackendFormat(format);
106 static GrBackendFormat MakeMtl(GrMTLPixelFormat format) {
107 return GrBackendFormat(format);
112 static GrBackendFormat MakeDxgi(DXGI_FORMAT format) {
113 return GrBackendFormat(format);
127 * Gets the channels present in the format as a bitfield of SkColorChannelFlag values.
136 * If the backend API is GL this gets the format as a GrGLFormat. Otherwise, returns
144 * If the backend API is Vulkan this gets the format as a VkFormat and returns true. Otherwise,
154 * If the backend API is Dawn this gets the format as a wgpu::TextureFormat and returns true.
162 * If the backend API is Metal this gets the format as a GrMtlPixelFormat. Otherwise,
170 * If the backend API is Direct3D this gets the format as a DXGI_FORMAT and returns true.
179 * kUnknown, the compression type is not kNone, or this is a mock stencil format.
187 // remove the conversion and set the format to be VK_FORMAT_R8G8B8A8_UNORM.
190 // Returns true if the backend format has been initialized.
199 GrBackendFormat(GrGLenum format, GrGLenum target);
208 GrBackendFormat(wgpu::TextureFormat format);
230 GrGLenum fGLFormat; // the sized, internal format of the GL resource
361 // Get the GrBackendFormat for this texture (or an invalid format if this is not valid).
559 // Get the GrBackendFormat for this render target (or an invalid format if this is not valid).