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

Describes a surface to be created. More...

#include <GrTypes.h>

Public Attributes

GrSurfaceFlags fFlags
 bitfield of TextureFlags
 
GrSurfaceOrigin fOrigin
 origin of the texture
 
int fWidth
 Width of the texture.
 
int fHeight
 Height of the texture.
 
GrPixelConfig fConfig
 Format of source data of the texture. More...
 
int fSampleCnt
 The number of samples per pixel or 0 to disable full scene AA. More...
 
bool fIsMipMapped
 Indicates if the texture has mipmaps.
 

Detailed Description

Describes a surface to be created.

Member Data Documentation

GrPixelConfig GrSurfaceDesc::fConfig

Format of source data of the texture.

Not guaranteed to be the same as internal format used by 3D API.

int GrSurfaceDesc::fSampleCnt

The number of samples per pixel or 0 to disable full scene AA.

This only applies if the kRenderTarget_GrSurfaceFlag is set. The actual number of samples may not exactly match the request. The request will be rounded up to the next supported sample count, or down if it is larger than the max supported count.


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