OGRE
1.12.13
Object-Oriented Graphics Rendering Engine
|
This class stores the capabilities of the graphics card. More...
#include <OgreRenderSystemCapabilities.h>
Public Types | |
typedef std::set< String > | ShaderProfiles |
Public Member Functions | |
RenderSystemCapabilities () | |
void | addShaderProfile (const String &profile) |
Adds the profile to the list of supported profiles. More... | |
ushort | getComputeProgramConstantBoolCount (void) const |
The number of boolean constants fragment programs support. More... | |
ushort | getComputeProgramConstantFloatCount (void) const |
The number of floating-point constants fragment programs support. More... | |
ushort | getComputeProgramConstantIntCount (void) const |
The number of integer constants fragment programs support. More... | |
String | getDeviceName () const |
gets the device name for render system More... | |
DriverVersion | getDriverVersion () const |
ushort | getFragmentProgramConstantBoolCount (void) const |
The number of boolean constants fragment programs support. More... | |
ushort | getFragmentProgramConstantFloatCount (void) const |
The number of floating-point constants fragment programs support. More... | |
ushort | getFragmentProgramConstantIntCount (void) const |
The number of integer constants fragment programs support. More... | |
ushort | getGeometryProgramConstantBoolCount (void) const |
The number of boolean constants geometry programs support. More... | |
ushort | getGeometryProgramConstantFloatCount (void) const |
The number of floating-point constants geometry programs support. More... | |
ushort | getGeometryProgramConstantIntCount (void) const |
The number of integer constants geometry programs support. More... | |
int | getGeometryProgramNumOutputVertices (void) const |
Get the number of vertices a single geometry program run can emit. More... | |
Real | getMaxPointSize (void) const |
Maximum point screen size in pixels. More... | |
Real | getMaxSupportedAnisotropy () const |
Get the maximum supported anisotropic filtering. More... | |
bool | getNonPOW2TexturesLimited (void) const |
Are non-power of two textures limited in features? More... | |
ushort | getNumMultiRenderTargets (void) const |
The number of simultaneous render targets supported. More... | |
ushort | getNumTextureUnits (void) const |
Returns the number of texture units the current output hardware supports. More... | |
ushort | getNumVertexAttributes (void) const |
ushort | getNumVertexBlendMatrices (void) const |
ushort | getNumVertexTextureUnits (void) const |
Get the number of vertex texture units supported. More... | |
const String & | getRenderSystemName (void) const |
Get the identifier of the rendersystem from which these capabilities were generated. More... | |
ushort | getStencilBufferBitDepth (void) const |
Determines the bit depth of the hardware accelerated stencil buffer, if supported. More... | |
const ShaderProfiles & | getSupportedShaderProfiles () const |
Returns a set of all supported shader profiles. More... | |
ushort | getTessellationDomainProgramConstantBoolCount (void) const |
The number of boolean constants fragment programs support. More... | |
ushort | getTessellationDomainProgramConstantFloatCount (void) const |
The number of floating-point constants fragment programs support. More... | |
ushort | getTessellationDomainProgramConstantIntCount (void) const |
The number of integer constants fragment programs support. More... | |
ushort | getTessellationHullProgramConstantBoolCount (void) const |
The number of boolean constants fragment programs support. More... | |
ushort | getTessellationHullProgramConstantFloatCount (void) const |
The number of floating-point constants fragment programs support. More... | |
ushort | getTessellationHullProgramConstantIntCount (void) const |
The number of integer constants fragment programs support. More... | |
GPUVendor | getVendor () const |
ushort | getVertexProgramConstantBoolCount (void) const |
The number of boolean constants vertex programs support. More... | |
ushort | getVertexProgramConstantFloatCount (void) const |
The number of floating-point constants vertex programs support. More... | |
ushort | getVertexProgramConstantIntCount (void) const |
The number of integer constants vertex programs support. More... | |
bool | getVertexTextureUnitsShared (void) const |
Get whether the vertex texture units are shared with the fragment processor. More... | |
bool | hasCapability (const Capabilities c) const |
Checks for a capability. More... | |
bool | isCapabilityRenderSystemSpecific (const Capabilities c) const |
Returns true if capability is render system specific. More... | |
bool | isCategoryRelevant (CapabilitiesCategory cat) |
Return whether a category is 'relevant' or not, ie will it be reported. More... | |
bool | isDriverOlderThanVersion (const DriverVersion &v) const |
bool | isShaderProfileSupported (const String &profile) const |
Returns true if profile is in the list of supported profiles. More... | |
void | log (Log *pLog) const |
Write the capabilities to the pass in Log. More... | |
void | parseDriverVersionFromString (const String &versionString) |
void | parseVendorFromString (const String &vendorString) |
Parse and set vendor. More... | |
void | removeShaderProfile (const String &profile) |
Remove a given shader profile, if present. More... | |
void | setCapability (const Capabilities c) |
Adds a capability flag. More... | |
void | setCategoryRelevant (CapabilitiesCategory cat, bool relevant) |
Mark a category as 'relevant' or not, ie will it be reported. More... | |
void | setComputeProgramConstantBoolCount (ushort c) |
The number of boolean constants compute programs support. More... | |
void | setComputeProgramConstantFloatCount (ushort c) |
The number of floating-point constants compute programs support. More... | |
void | setComputeProgramConstantIntCount (ushort c) |
The number of integer constants compute programs support. More... | |
void | setDeviceName (const String &name) |
sets the device name for Render system More... | |
void | setDriverVersion (const DriverVersion &version) |
Set the driver version. More... | |
void | setFragmentProgramConstantBoolCount (ushort c) |
The number of boolean constants fragment programs support. More... | |
void | setFragmentProgramConstantFloatCount (ushort c) |
The number of floating-point constants fragment programs support. More... | |
void | setFragmentProgramConstantIntCount (ushort c) |
The number of integer constants fragment programs support. More... | |
void | setGeometryProgramConstantBoolCount (ushort c) |
The number of boolean constants geometry programs support. More... | |
void | setGeometryProgramConstantFloatCount (ushort c) |
The number of floating-point constants geometry programs support. More... | |
void | setGeometryProgramConstantIntCount (ushort c) |
The number of integer constants geometry programs support. More... | |
void | setGeometryProgramNumOutputVertices (int numOutputVertices) |
Set the number of vertices a single geometry program run can emit. More... | |
void | setMaxPointSize (Real s) |
Maximum point screen size in pixels. More... | |
void | setMaxSupportedAnisotropy (Real s) |
Set the maximum supported anisotropic filtering. More... | |
void | setNonPOW2TexturesLimited (bool l) |
Non-POW2 textures limited. More... | |
void | setNumMultiRenderTargets (ushort num) |
The number of simultaneous render targets supported. More... | |
void | setNumTextureUnits (ushort num) |
void | setNumVertexAttributes (ushort num) |
void | setNumVertexBlendMatrices (ushort num) |
void | setNumVertexTextureUnits (ushort n) |
Set the number of vertex texture units supported. More... | |
void | setRenderSystemName (const String &rs) |
Set the identifier of the rendersystem from which these capabilities were generated. More... | |
void | setStencilBufferBitDepth (ushort num) |
void | setTessellationDomainProgramConstantBoolCount (ushort c) |
The number of boolean constants tessellation Domain programs support. More... | |
void | setTessellationDomainProgramConstantFloatCount (ushort c) |
The number of floating-point constants tessellation Domain programs support. More... | |
void | setTessellationDomainProgramConstantIntCount (ushort c) |
The number of integer constants tessellation Domain programs support. More... | |
void | setTessellationHullProgramConstantBoolCount (ushort c) |
The number of boolean constants tessellation Domain programs support. More... | |
void | setTessellationHullProgramConstantFloatCount (ushort c) |
The number of floating-point constants tessellation Hull programs support. More... | |
void | setTessellationHullProgramConstantIntCount (ushort c) |
The number of integer constants tessellation Domain programs support. More... | |
void | setVendor (GPUVendor v) |
void | setVertexProgramConstantBoolCount (ushort c) |
The number of boolean constants vertex programs support. More... | |
void | setVertexProgramConstantFloatCount (ushort c) |
The number of floating-point constants vertex programs support. More... | |
void | setVertexProgramConstantIntCount (ushort c) |
The number of integer constants vertex programs support. More... | |
void | setVertexTextureUnitsShared (bool shared) |
Set whether the vertex texture units are shared with the fragment processor. More... | |
void | unsetCapability (const Capabilities c) |
Remove a capability flag. More... | |
Static Public Member Functions | |
static GPUVendor | vendorFromString (const String &vendorString) |
Convert a vendor string to an enum. More... | |
static const String & | vendorToString (GPUVendor v) |
Convert a vendor enum to a string. More... | |
This class stores the capabilities of the graphics card.
typedef std::set<String> Ogre::RenderSystemCapabilities::ShaderProfiles |
Ogre::RenderSystemCapabilities::RenderSystemCapabilities | ( | ) |
|
inline |
Set the driver version.
|
inline |
References Ogre::DriverVersion::fromString().
|
inline |
|
inline |
|
inline |
|
inline |
Parse and set vendor.
|
static |
Convert a vendor string to an enum.
Convert a vendor enum to a string.
Referenced by Ogre::to_string().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
The number of simultaneous render targets supported.
|
inline |
|
inline |
|
inline |
Returns the number of texture units the current output hardware supports.
For use in rendering, this determines how many texture units the are available for multitexturing (i.e. rendering multiple textures in a single pass). Where a Material has multiple texture layers, it will try to use multitexturing where available, and where it is not available, will perform multipass rendering to achieve the same effect. This property only applies to the fixed-function pipeline, the number available to the programmable pipeline depends on the shader model in use.
|
inline |
Determines the bit depth of the hardware accelerated stencil buffer, if supported.
|
inline |
|
inline |
The number of simultaneous render targets supported.
|
inline |
Returns true if capability is render system specific.
References Ogre::CAPS_CATEGORY_D3D9, Ogre::CAPS_CATEGORY_GL, and OGRE_CAPS_BITSHIFT.
|
inline |
Adds a capability flag.
References CAPS_CATEGORY_MASK, and OGRE_CAPS_BITSHIFT.
|
inline |
Remove a capability flag.
References CAPS_CATEGORY_MASK, and OGRE_CAPS_BITSHIFT.
|
inline |
Checks for a capability.
References CAPS_CATEGORY_MASK, and OGRE_CAPS_BITSHIFT.
void Ogre::RenderSystemCapabilities::addShaderProfile | ( | const String & | profile | ) |
Adds the profile to the list of supported profiles.
void Ogre::RenderSystemCapabilities::removeShaderProfile | ( | const String & | profile | ) |
Remove a given shader profile, if present.
bool Ogre::RenderSystemCapabilities::isShaderProfileSupported | ( | const String & | profile | ) | const |
Returns true if profile is in the list of supported profiles.
|
inline |
Returns a set of all supported shader profiles.
|
inline |
The number of floating-point constants vertex programs support.
|
inline |
The number of integer constants vertex programs support.
|
inline |
The number of boolean constants vertex programs support.
|
inline |
The number of floating-point constants geometry programs support.
|
inline |
The number of integer constants geometry programs support.
|
inline |
The number of boolean constants geometry programs support.
|
inline |
The number of floating-point constants fragment programs support.
|
inline |
The number of integer constants fragment programs support.
|
inline |
The number of boolean constants fragment programs support.
|
inline |
sets the device name for Render system
|
inline |
gets the device name for render system
|
inline |
The number of floating-point constants vertex programs support.
|
inline |
The number of integer constants vertex programs support.
|
inline |
The number of boolean constants vertex programs support.
|
inline |
The number of floating-point constants geometry programs support.
|
inline |
The number of integer constants geometry programs support.
|
inline |
The number of boolean constants geometry programs support.
|
inline |
The number of floating-point constants fragment programs support.
|
inline |
The number of integer constants fragment programs support.
|
inline |
The number of boolean constants fragment programs support.
|
inline |
Maximum point screen size in pixels.
|
inline |
Maximum point screen size in pixels.
|
inline |
Non-POW2 textures limited.
|
inline |
Are non-power of two textures limited in features?
|
inline |
Set the maximum supported anisotropic filtering.
|
inline |
Get the maximum supported anisotropic filtering.
|
inline |
Set the number of vertex texture units supported.
|
inline |
Get the number of vertex texture units supported.
|
inline |
Set whether the vertex texture units are shared with the fragment processor.
|
inline |
Get whether the vertex texture units are shared with the fragment processor.
|
inline |
Set the number of vertices a single geometry program run can emit.
|
inline |
Get the number of vertices a single geometry program run can emit.
|
inline |
Get the identifier of the rendersystem from which these capabilities were generated.
|
inline |
Set the identifier of the rendersystem from which these capabilities were generated.
|
inline |
Mark a category as 'relevant' or not, ie will it be reported.
|
inline |
Return whether a category is 'relevant' or not, ie will it be reported.
void Ogre::RenderSystemCapabilities::log | ( | Log * | pLog | ) | const |
Write the capabilities to the pass in Log.
|
inline |
The number of floating-point constants tessellation Hull programs support.
|
inline |
The number of integer constants tessellation Domain programs support.
|
inline |
The number of boolean constants tessellation Domain programs support.
|
inline |
The number of floating-point constants fragment programs support.
|
inline |
The number of integer constants fragment programs support.
|
inline |
The number of boolean constants fragment programs support.
|
inline |
The number of floating-point constants tessellation Domain programs support.
|
inline |
The number of integer constants tessellation Domain programs support.
|
inline |
The number of boolean constants tessellation Domain programs support.
|
inline |
The number of floating-point constants fragment programs support.
|
inline |
The number of integer constants fragment programs support.
|
inline |
The number of boolean constants fragment programs support.
|
inline |
The number of floating-point constants compute programs support.
|
inline |
The number of integer constants compute programs support.
|
inline |
The number of boolean constants compute programs support.
|
inline |
The number of floating-point constants fragment programs support.
|
inline |
The number of integer constants fragment programs support.
|
inline |
The number of boolean constants fragment programs support.