Package icyllis.arc3d.sketch.shaders
Class BlendShader
java.lang.Object
icyllis.arc3d.sketch.shaders.BlendShader
- All Implemented Interfaces:
RefCounted
,Shader
-
Field Summary
Fields inherited from interface icyllis.arc3d.sketch.shaders.Shader
LOCAL_MATRIX_AFTER, LOCAL_MATRIX_BEFORE, LOCAL_MATRIX_REPLACE, TILE_MODE_CLAMP, TILE_MODE_DECAL, TILE_MODE_MIRROR, TILE_MODE_REPEAT
-
Method Summary
Modifier and TypeMethodDescriptiongetDst()
getMode()
getSrc()
boolean
A return value of true means that its ref/unref is unnecessary, for example, they are just no op.static @Nullable @SharedPtr Shader
make
(BlendMode mode, @SharedPtr Shader src, @SharedPtr Shader dst) void
ref()
Increases the reference count by 1.void
unref()
Decreases the reference count by 1.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface icyllis.arc3d.sketch.shaders.Shader
isOpaque, makeWithLocalMatrix
-
Method Details
-
make
@SharedPtr public static @Nullable @SharedPtr Shader make(BlendMode mode, @SharedPtr @SharedPtr Shader src, @SharedPtr @SharedPtr Shader dst) -
ref
public void ref()Description copied from interface:RefCounted
Increases the reference count by 1.- Specified by:
ref
in interfaceRefCounted
- Specified by:
ref
in interfaceShader
-
unref
public void unref()Description copied from interface:RefCounted
Decreases the reference count by 1.- Specified by:
unref
in interfaceRefCounted
- Specified by:
unref
in interfaceShader
-
isTriviallyCounted
public boolean isTriviallyCounted()Description copied from interface:Shader
A return value of true means that its ref/unref is unnecessary, for example, they are just no op. So callers can perform some optimizations. Subclass can override this method to indicate that an instance is trivially counted. For the same instance, the return value of this method must remain unchanged.- Specified by:
isTriviallyCounted
in interfaceShader
-
getMode
-
getSrc
-
getDst
-