diff options
author | Alex Sakhartchouk <alexst@google.com> | 2010-09-01 16:34:48 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2010-09-02 10:45:39 -0700 |
commit | 1e5168d113ccdcf9fe1b817dcbf2f7f476d36c74 (patch) | |
tree | 68a60aa51712b518ad52d458f765021a6df81956 /rsScriptC_Lib.cpp | |
parent | 5192f45b1ab8dc49d5ec7c3f235e769180cdb55b (diff) | |
download | rs-1e5168d113ccdcf9fe1b817dcbf2f7f476d36c74.tar.gz |
Adding ability to dirty the allocation and notify shaders using it.
Change-Id: Id5ac8dbba5185cb1f43bedcf4098fcef9f477c51
Diffstat (limited to 'rsScriptC_Lib.cpp')
-rw-r--r-- | rsScriptC_Lib.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rsScriptC_Lib.cpp b/rsScriptC_Lib.cpp index b4b32bbe..41828dc2 100644 --- a/rsScriptC_Lib.cpp +++ b/rsScriptC_Lib.cpp @@ -356,6 +356,11 @@ int SC_getAllocation(const void *ptr) return (int)alloc; } +void SC_allocationMarkDirty(RsAllocation a) +{ + Allocation *alloc = static_cast<Allocation *>(a); + alloc->sendDirty(); +} void SC_ForEach(RsScript vs, RsAllocation vin, @@ -422,6 +427,8 @@ static ScriptCState::SymbolTable_t gSyms[] = { { "_Z13rsClearObjectP13rs_allocation", (void *)&SC_clearObject }, { "_Z10rsIsObject13rs_allocation", (void *)&SC_isObject }, + { "_Z21rsAllocationMarkDirty13rs_allocation", (void *)&SC_allocationMarkDirty }, + // Debug { "_Z7rsDebugPKcf", (void *)&SC_debugF }, |