Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GrBackendRenderTargetDesc Struct Reference

Gr can wrap an existing render target created by the client in the 3D API with a GrRenderTarget object. More...

#include <GrTypes.h>

Public Attributes

int fWidth
 
int fHeight
 
GrPixelConfig fConfig
 
GrSurfaceOrigin fOrigin
 
int fSampleCnt
 The number of samples per pixel. More...
 
int fStencilBits
 Number of bits of stencil per-pixel.
 
GrBackendObject fRenderTargetHandle
 Handle to the 3D API object. More...
 

Detailed Description

Gr can wrap an existing render target created by the client in the 3D API with a GrRenderTarget object.

The client is responsible for ensuring that the underlying 3D API object lives at least as long as the GrRenderTarget object wrapping it. We require the client to explicitly provide information about the target, such as width, height, and pixel config rather than querying the 3D API for these values. We expect these properties to be immutable even if the 3D API doesn't require this (OpenGL).

Member Data Documentation

GrBackendObject GrBackendRenderTargetDesc::fRenderTargetHandle

Handle to the 3D API object.

OpenGL: FBO ID Vulkan: GrVkImageInfo*

int GrBackendRenderTargetDesc::fSampleCnt

The number of samples per pixel.

Gr uses this to influence decisions about applying other forms of anti-aliasing.


The documentation for this struct was generated from the following file: