APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.prism

public abstract Class GraphicsPipeline

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.prism.d3d.D3DPipeline, com.sun.prism.es2.ES2Pipeline, com.sun.prism.j2d.J2DPipeline, com.sun.prism.mtl.MTLPipeline, com.sun.prism.null3d.NULL3DPipeline, com.sun.prism.sw.SWPipeline
Imports
com.sun.glass.ui.Screen, com.sun.javafx.font.FontFactory, .PrismFontFactory, com.sun.prism.impl.PrismSettings, java.lang.reflect.Method, java.util.ArrayList, .HashSet, .Iterator, .List, .Map, .Set

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
public static enum

Field Summary

Modifier and TypeField and Description
protected Map<K, V>
private final Set<Runnable>
private FontFactory
private static GraphicsPipeline

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addDisposeHook(Runnable
the Runnable to be called when the pipeline is disposed
runnable
)

Add a dispose hook to be called when the pipeline is disposed.

public static GraphicsPipeline
public void
public abstract int
public abstract ResourceFactory
public static ResourceFactory
public Map<K, V>
public FontFactory
public static GraphicsPipeline
public abstract ResourceFactory
public abstract boolean
init()

public abstract boolean
public boolean
public boolean
public boolean

Returns:

true if the pipeline uses an uploading painter
isUploading
()

Checks if the GraphicsPipeline uses uploading or presenting painter

public abstract boolean
private void
protected void
setDeviceDetails(Map<K, V> details)

public boolean

Returns:

true if the indicated ShaderType and ShaderModel are supported
supportsShader
(GraphicsPipeline.ShaderType
the desired ShaderType to be used
type
,
GraphicsPipeline.ShaderModel
the desired ShaderModel to be used
model
)

Returns true iff the graphics objects from this pipeline support the indicated ShaderType and ShaderModel.

public abstract boolean

Returns:

true if the indicated ShaderModel is supported
supportsShaderModel
(GraphicsPipeline.ShaderModel
the desired ShaderModel to be used
model
)

Returns true iff the graphics objects from this pipeline support the indicated ShaderModel.

public abstract boolean

Returns:

true if the indicated ShaderType is supported
supportsShaderType
(GraphicsPipeline.ShaderType
the desired ShaderType to be used
type
)

Returns true iff the graphics objects from this pipeline support the indicated ShaderType.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

deviceDetailsback to summary
protected Map<K, V> deviceDetails
disposeHooksback to summary
private final Set<Runnable> disposeHooks
fontFactoryback to summary
private FontFactory fontFactory
installedPipelineback to summary
private static GraphicsPipeline installedPipeline

Constructor Detail

GraphicsPipelineback to summary
public GraphicsPipeline()

Method Detail

addDisposeHookback to summary
public void addDisposeHook(Runnable runnable)

Add a dispose hook to be called when the pipeline is disposed.

Parameters
runnable:Runnable

the Runnable to be called when the pipeline is disposed

createPipelineback to summary
public static GraphicsPipeline createPipeline()
disposeback to summary
public void dispose()
getAdapterOrdinalback to summary
public abstract int getAdapterOrdinal(Screen screen)
getDefaultResourceFactoryback to summary
public abstract ResourceFactory getDefaultResourceFactory(List<Screen> screens)
getDefaultResourceFactoryback to summary
public static ResourceFactory getDefaultResourceFactory()
getDeviceDetailsback to summary
public Map<K, V> getDeviceDetails()
getFontFactoryback to summary
public FontFactory getFontFactory()
getPipelineback to summary
public static GraphicsPipeline getPipeline()
getResourceFactoryback to summary
public abstract ResourceFactory getResourceFactory(Screen screen)
initback to summary
public abstract boolean init()
is3DSupportedback to summary
public abstract boolean is3DSupported()
isEffectSupportedback to summary
public boolean isEffectSupported()
isMSAASupportedback to summary
public boolean isMSAASupported()
isUploadingback to summary
public boolean isUploading()

Checks if the GraphicsPipeline uses uploading or presenting painter

Returns:boolean

true if the pipeline uses an uploading painter

isVsyncSupportedback to summary
public abstract boolean isVsyncSupported()
notifyDisposeHooksback to summary
private void notifyDisposeHooks()
setDeviceDetailsback to summary
protected void setDeviceDetails(Map<K, V> details)
supportsShaderback to summary
public boolean supportsShader(GraphicsPipeline.ShaderType type, GraphicsPipeline.ShaderModel model)

Returns true iff the graphics objects from this pipeline support the indicated ShaderType and ShaderModel. Generally, the pipeline will also support all older or lower-numbered ShaderModels as well.

Parameters
type:GraphicsPipeline.ShaderType

the desired ShaderType to be used

model:GraphicsPipeline.ShaderModel

the desired ShaderModel to be used

Returns:boolean

true if the indicated ShaderType and ShaderModel are supported

supportsShaderModelback to summary
public abstract boolean supportsShaderModel(GraphicsPipeline.ShaderModel model)

Returns true iff the graphics objects from this pipeline support the indicated ShaderModel. Generally, the pipeline will also support all older or lower-numbered ShaderModels as well.

Parameters
model:GraphicsPipeline.ShaderModel

the desired ShaderModel to be used

Returns:boolean

true if the indicated ShaderModel is supported

supportsShaderTypeback to summary
public abstract boolean supportsShaderType(GraphicsPipeline.ShaderType type)

Returns true iff the graphics objects from this pipeline support the indicated ShaderType.

Parameters
type:GraphicsPipeline.ShaderType

the desired ShaderType to be used

Returns:boolean

true if the indicated ShaderType is supported

com.sun.prism back to summary

public final Enum GraphicsPipeline.ShaderModel

extends Enum<GraphicsPipeline.ShaderModel>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final GraphicsPipeline.ShaderModel
SM3

The pipeline supports Shader Model 3 features, including Pixel Shader 3.0 and Vertex Shader 3.0 programs.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static GraphicsPipeline.ShaderModel
public static GraphicsPipeline.ShaderModel[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

SM3back to summary
public static final GraphicsPipeline.ShaderModel SM3

The pipeline supports Shader Model 3 features, including Pixel Shader 3.0 and Vertex Shader 3.0 programs.

Constructor Detail

ShaderModelback to summary
private ShaderModel()

Method Detail

valueOfback to summary
public static GraphicsPipeline.ShaderModel valueOf(String name)
valuesback to summary
public static GraphicsPipeline.ShaderModel[] values()
com.sun.prism back to summary

public final Enum GraphicsPipeline.ShaderType

extends Enum<GraphicsPipeline.ShaderType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final GraphicsPipeline.ShaderType
GLSL

The pipeline supports shaders built with the OpenGL GLSL shader language

public static final GraphicsPipeline.ShaderType
HLSL

The pipeline supports shaders built with the D3D HLSL shader language.

public static final GraphicsPipeline.ShaderType
MSL

The pipeline supports shaders built with the Metal shader language

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static GraphicsPipeline.ShaderType
public static GraphicsPipeline.ShaderType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

GLSLback to summary
public static final GraphicsPipeline.ShaderType GLSL

The pipeline supports shaders built with the OpenGL GLSL shader language

HLSLback to summary
public static final GraphicsPipeline.ShaderType HLSL

The pipeline supports shaders built with the D3D HLSL shader language.

MSLback to summary
public static final GraphicsPipeline.ShaderType MSL

The pipeline supports shaders built with the Metal shader language

Constructor Detail

ShaderTypeback to summary
private ShaderType()

Method Detail

valueOfback to summary
public static GraphicsPipeline.ShaderType valueOf(String name)
valuesback to summary
public static GraphicsPipeline.ShaderType[] values()