public static class ProgramStore.Builder extends Object
Constructor and Description |
---|
ProgramStore.Builder(RenderScript rs) |
Modifier and Type | Method and Description |
---|---|
ProgramStore |
create()
Creates a program store from the current state of the builder
|
ProgramStore.Builder |
setBlendFunc(ProgramStore.BlendSrcFunc src,
ProgramStore.BlendDstFunc dst)
Specifies how incoming pixels are combined with the pixels
stored in the framebuffer
|
ProgramStore.Builder |
setColorMaskEnabled(boolean r,
boolean g,
boolean b,
boolean a)
Enables writes into the color buffer
|
ProgramStore.Builder |
setDepthFunc(ProgramStore.DepthFunc func)
Specifies the depth testing behavior
|
ProgramStore.Builder |
setDepthMaskEnabled(boolean enable)
Enables writes into the depth buffer
|
ProgramStore.Builder |
setDitherEnabled(boolean enable)
Enables dithering
|
public ProgramStore.Builder(RenderScript rs)
public ProgramStore.Builder setDepthFunc(ProgramStore.DepthFunc func)
func
- function used for depth testingpublic ProgramStore.Builder setDepthMaskEnabled(boolean enable)
enable
- specifies whether depth writes are
enabled or disabledpublic ProgramStore.Builder setColorMaskEnabled(boolean r, boolean g, boolean b, boolean a)
r
- specifies whether red channel is writteng
- specifies whether green channel is writtenb
- specifies whether blue channel is writtena
- specifies whether alpha channel is writtenpublic ProgramStore.Builder setBlendFunc(ProgramStore.BlendSrcFunc src, ProgramStore.BlendDstFunc dst)
src
- specifies how the source blending factor is
computeddst
- specifies how the destination blending factor is
computedpublic ProgramStore.Builder setDitherEnabled(boolean enable)
enable
- specifies whether dithering is enabled or
disabledpublic ProgramStore create()