IGraphicsContextFactory
Description
- Derived from
- Extended by
-
GraphicsContextFactory abstract
Base interface for classes that create IGraphicsContext instances.
Public / Methods
GetGraphicsContext
Returns the graphics context for the current factory settings.
- IOException
-
If an I/O error has occurred while loading the shader effects (see ShaderRepository).
- RenderException
-
If CanCreateGraphicsContext returns
false
or if the graphics driver has returned an error.
Public / Attributes
AdapterOrdinal
Chooses the graphics adapter.
If the given adapter ordinal is not valid, the default adapter will be used.
Defaults to 0
.
CanCreateGraphicsContext
Can this factory create a graphics context in the current environment?
The value of this property reflects the environment only, e.g. the availability of native libraries. It does not take into account the current application state, such as the presence of a primary window.
MaximumTextureSize
The maximum size of a single texture resource in video memory.
The default value is 0
.
- See also
MultiSampling
The multisampling type to use.
If the given multisampling type is not supported, the closest match will be used.
The default value is MultiSampleType.None.
- See also
ShaderRepository
Path to the base directory of the GPU shader repository.
The shader repository is structured like this:
path/lang.api/
where path
is the ShaderRepository, lang
is the name of the shader programming language (e.g. glsl
, hlsl
) and api
is the name tag of the graphics API (e.g. dx9
, dx11
, dx12
, gl41
, gles30
). Usually, there will be some shared code in this directory:
path/lang/
The contents of the directory for a specific shader programming language and graphics API is defined by the corresponding IGraphicsContext implementation.