diff options
| author | Jason Sams <rjsams@android.com> | 2010-10-13 15:31:10 -0700 |
|---|---|---|
| committer | Jason Sams <rjsams@android.com> | 2010-10-13 15:31:10 -0700 |
| commit | 11c8af9ded3a319635b4e91a639a616ec97fc7e3 (patch) | |
| tree | b229be5c62ec938c4cf2f11ca6aa15d2b85e5ba2 /libs/rs/RenderScript.h | |
| parent | 3c0365518f3f664634ed0f9464c351acf3b7e86d (diff) | |
| download | frameworks_base-11c8af9ded3a319635b4e91a639a616ec97fc7e3.zip frameworks_base-11c8af9ded3a319635b4e91a639a616ec97fc7e3.tar.gz frameworks_base-11c8af9ded3a319635b4e91a639a616ec97fc7e3.tar.bz2 | |
Begin hooking up SurfaceConfig.
Change-Id: I328138f29affbed11fcfb5e9ed0872d4ba22d241
Diffstat (limited to 'libs/rs/RenderScript.h')
| -rw-r--r-- | libs/rs/RenderScript.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/libs/rs/RenderScript.h b/libs/rs/RenderScript.h index 66e27f3..da8edbe 100644 --- a/libs/rs/RenderScript.h +++ b/libs/rs/RenderScript.h @@ -55,12 +55,26 @@ enum RsDeviceParam { RS_DEVICE_PARAM_COUNT }; +typedef struct { + uint32_t colorMin; + uint32_t colorPref; + uint32_t alphaMin; + uint32_t alphaPref; + uint32_t depthMin; + uint32_t depthPref; + uint32_t stencilMin; + uint32_t stencilPref; + uint32_t samplesMin; + uint32_t samplesPref; + float samplesQ; +} RsSurfaceConfig; + RsDevice rsDeviceCreate(); void rsDeviceDestroy(RsDevice); void rsDeviceSetConfig(RsDevice, RsDeviceParam, int32_t value); RsContext rsContextCreate(RsDevice, uint32_t version); -RsContext rsContextCreateGL(RsDevice, uint32_t version, bool useDepth); +RsContext rsContextCreateGL(RsDevice, uint32_t version, RsSurfaceConfig sc); void rsContextDestroy(RsContext); uint32_t rsContextGetMessage(RsContext, void *data, size_t *receiveLen, size_t bufferLen, bool wait); @@ -270,6 +284,7 @@ typedef struct { } RsScriptCall; + #ifndef NO_RS_FUNCS #include "rsgApiFuncDecl.h" #endif |
