aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/shaderapi
diff options
context:
space:
mode:
authorJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
committerJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
commit0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch)
treec831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/public/shaderapi
parentUpdated the SDK with the latest code from the TF and HL2 branches. (diff)
downloadsource-sdk-2013-master.tar.xz
source-sdk-2013-master.zip
Updated the SDK with the latest code from the TF and HL2 branches.HEADmaster
Diffstat (limited to 'mp/src/public/shaderapi')
-rw-r--r--mp/src/public/shaderapi/ishaderapi.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/mp/src/public/shaderapi/ishaderapi.h b/mp/src/public/shaderapi/ishaderapi.h
index 367cd0e9..1a90caee 100644
--- a/mp/src/public/shaderapi/ishaderapi.h
+++ b/mp/src/public/shaderapi/ishaderapi.h
@@ -82,7 +82,7 @@ enum CreateTextureFlags_t
TEXTURE_CREATE_VERTEXTEXTURE = 0x0040, // for internal use only
TEXTURE_CREATE_FALLBACK = 0x0080, // 360 only
TEXTURE_CREATE_NOD3DMEMORY = 0x0100, // 360 only
- TEXTURE_CREATE_UNUSED3 = 0x0200, // Dead
+ TEXTURE_CREATE_SYSMEM = 0x0200, // This texture should be alloc'd in the sysmem pool
TEXTURE_CREATE_UNUSED4 = 0x0400, // Dead
TEXTURE_CREATE_UNUSED5 = 0x0800, // Dead
TEXTURE_CREATE_UNFILTERABLE_OK = 0x1000,
@@ -611,6 +611,13 @@ public:
//extended clear buffers function with alpha independent from color
virtual void ClearBuffersObeyStencilEx( bool bClearColor, bool bClearAlpha, bool bClearDepth ) = 0;
+
+ // Allows copying a render target to another texture by specifying them both.
+ virtual void CopyRenderTargetToScratchTexture( ShaderAPITextureHandle_t srcRt, ShaderAPITextureHandle_t dstTex, Rect_t *pSrcRect = NULL, Rect_t *pDstRect = NULL ) = 0;
+
+ // Allows locking and unlocking of very specific surface types.
+ virtual void LockRect( void** pOutBits, int* pOutPitch, ShaderAPITextureHandle_t texHandle, int mipmap, int x, int y, int w, int h, bool bWrite, bool bRead ) = 0;
+ virtual void UnlockRect( ShaderAPITextureHandle_t texHandle, int mipmap ) = 0;
};