public final class D3DPipeline extends GraphicsPipeline
GraphicsPipeline.ShaderModel, GraphicsPipeline.ShaderType
Modifier and Type | Field and Description |
---|---|
(package private) D3DResourceFactory |
_default |
private static java.lang.Thread |
creator |
private static boolean |
d3dEnabled |
private static D3DResourceFactory[] |
factories |
private int |
maxSamples |
private static D3DPipeline |
theInstance |
deviceDetails
Modifier | Constructor and Description |
---|---|
private |
D3DPipeline() |
Modifier and Type | Method and Description |
---|---|
private static D3DResourceFactory |
createResourceFactory(int adapterOrdinal,
Screen screen) |
void |
dispose() |
private static D3DResourceFactory |
findDefaultResourceFactory(java.util.List<Screen> screens) |
int |
getAdapterOrdinal(Screen screen) |
private static D3DResourceFactory |
getD3DResourceFactory(int adapterOrdinal,
Screen screen) |
ResourceFactory |
getDefaultResourceFactory(java.util.List<Screen> screens) |
static D3DPipeline |
getInstance() |
(package private) int |
getMaxSamples() |
ResourceFactory |
getResourceFactory(Screen screen) |
private static Screen |
getScreenForAdapter(java.util.List<Screen> screens,
int adapterOrdinal) |
boolean |
init() |
boolean |
is3DSupported() |
private static boolean |
isDriverWarning(java.lang.String warningMessage) |
boolean |
isMSAASupported() |
boolean |
isVsyncSupported() |
private static void |
nDispose() |
private static int |
nGetAdapterCount() |
private static int |
nGetAdapterOrdinal(long hMonitor) |
private static D3DDriverInformation |
nGetDriverInformation(int adapterOrdinal,
D3DDriverInformation object) |
private static java.lang.String |
nGetErrorMessage() |
private static int |
nGetMaxSampleSupport(int adapterOrdinal) |
private static boolean |
nInit(java.lang.Class psClass) |
private static void |
notifyAllResourcesReleased() |
private static void |
printDriverInformation(int adapter) |
private static void |
printDriverWarning(D3DDriverInformation di) |
private static void |
printDriverWarning(int adapter) |
private static void |
printDriverWarnings() |
boolean |
supportsShaderModel(GraphicsPipeline.ShaderModel model)
Returns true iff the graphics objects from this pipeline support
the indicated
GraphicsPipeline.ShaderModel . |
boolean |
supportsShaderType(GraphicsPipeline.ShaderType type)
Returns true iff the graphics objects from this pipeline support
the indicated
GraphicsPipeline.ShaderType . |
createPipeline, getDefaultResourceFactory, getDeviceDetails, getFontFactory, getPipeline, isEffectSupported, isUploading, setDeviceDetails, supportsShader
private static final boolean d3dEnabled
private static java.lang.Thread creator
private static D3DPipeline theInstance
private static D3DResourceFactory[] factories
D3DResourceFactory _default
private int maxSamples
public static D3DPipeline getInstance()
private static boolean isDriverWarning(java.lang.String warningMessage)
private static void printDriverWarning(D3DDriverInformation di)
private static void printDriverWarning(int adapter)
private static void printDriverInformation(int adapter)
private static void printDriverWarnings()
public boolean init()
init
in class GraphicsPipeline
private static boolean nInit(java.lang.Class psClass)
private static java.lang.String nGetErrorMessage()
private static void nDispose()
private static int nGetAdapterOrdinal(long hMonitor)
private static int nGetAdapterCount()
private static D3DDriverInformation nGetDriverInformation(int adapterOrdinal, D3DDriverInformation object)
private static int nGetMaxSampleSupport(int adapterOrdinal)
public void dispose()
dispose
in class GraphicsPipeline
private static D3DResourceFactory createResourceFactory(int adapterOrdinal, Screen screen)
private static D3DResourceFactory getD3DResourceFactory(int adapterOrdinal, Screen screen)
private static void notifyAllResourcesReleased()
private static Screen getScreenForAdapter(java.util.List<Screen> screens, int adapterOrdinal)
public int getAdapterOrdinal(Screen screen)
getAdapterOrdinal
in class GraphicsPipeline
private static D3DResourceFactory findDefaultResourceFactory(java.util.List<Screen> screens)
public ResourceFactory getDefaultResourceFactory(java.util.List<Screen> screens)
getDefaultResourceFactory
in class GraphicsPipeline
public ResourceFactory getResourceFactory(Screen screen)
getResourceFactory
in class GraphicsPipeline
public boolean is3DSupported()
is3DSupported
in class GraphicsPipeline
int getMaxSamples()
public boolean isMSAASupported()
isMSAASupported
in class GraphicsPipeline
public boolean isVsyncSupported()
isVsyncSupported
in class GraphicsPipeline
public boolean supportsShaderType(GraphicsPipeline.ShaderType type)
GraphicsPipeline
GraphicsPipeline.ShaderType
.supportsShaderType
in class GraphicsPipeline
type
- the desired GraphicsPipeline.ShaderType
to be usedShaderType
is supportedpublic boolean supportsShaderModel(GraphicsPipeline.ShaderModel model)
GraphicsPipeline
GraphicsPipeline.ShaderModel
. Generally, the pipeline will
also support all older or lower-numbered ShaderModel
s as well.supportsShaderModel
in class GraphicsPipeline
model
- the desired GraphicsPipeline.ShaderModel
to be usedShaderModel
is supported