Python API 2.0 Reference
|
Public Member Functions | |
def | __init__ () |
def | getBlendState () |
def | getDepthStencilState () |
def | getRasterizerState () |
def | getSamplerState () |
def | setBlendState () |
def | setDepthStencilState () |
def | setRasterizerState () |
def | setSamplerState () |
Static Public Member Functions | |
def | __new__ () |
def | acquireBlendState () |
def | acquireDepthStencilState () |
def | acquireRasterizerState () |
def | acquireSamplerState () |
def | getMaxSamplerCount () |
def | releaseBlendState () |
def | releaseDepthStencilState () |
def | releaseRasterizerState () |
def | releaseSamplerState () |
Class to allow efficient access to GPU state information.
def OpenMayaRender.MStateManager.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
|
static |
Create and return a new object. See help(type) for accurate signature.
|
static |
acquireBlendState(MBlendStateDesc) -> MBlendState Acquires an immutable unique blend state matching the blend state descriptor.
|
static |
acquireDepthStencilState(MDepthStencilStateDesc) -> MDepthStencilState Acquires an immutable unique depth-stencil state matching the blend state descriptor.
|
static |
acquireRasterizerState(MRasterizerStateDesc) -> MRasterizerState Acquires an immutable unique rasterizer state matching the rasterizer state descriptor.
|
static |
acquireSamplerState(MSamplerStateDesc) -> MSamplerState Acquires an immutable unique sampler state matching the blend state descriptor.
def OpenMayaRender.MStateManager.getBlendState | ( | ) |
getBlendState() -> MBlendState Gets the current active blend state from the device.
def OpenMayaRender.MStateManager.getDepthStencilState | ( | ) |
getDepthStencilState() -> MDepthStencilState Gets the current depth-stencil blend state from the device.
|
static |
getMaxSamplerCount() -> int Get the maximum number of simulataneous texture coordinate interpolation channels.
def OpenMayaRender.MStateManager.getRasterizerState | ( | ) |
getRasterizerState() -> MRasterizerState Gets the current active rasterizer state from the device.
def OpenMayaRender.MStateManager.getSamplerState | ( | ) |
getSamplerState(shader, samplerIndex) -> MSamplerState Gets the current active sampler state from the device. * shader (ShaderType) - The shader this sampler will apply to. * samplerIndex (int) - The index of the sampler to set with the given shader state.
|
static |
releaseBlendState(MBlendState) -> None Deletes the MBlendState and releases the reference to the underlying state object which is held by the MBlendState object.
|
static |
releaseDepthStencilState(MDepthStencilState) -> None Deletes the MDepthStencilState and releases the reference to the underlying state object which is held by the MDepthStencilState object.
|
static |
releaseRasterizerState(MRasterizerState) -> None Deletes the MRasterizerState and releases the reference to the underlying state object which is held by the MRasterizerState object.
|
static |
releaseSamplerState(MSamplerState) -> None Deletes the MSamplerState and releases the reference to the underlying state object which is held by the MSamplerState object.
def OpenMayaRender.MStateManager.setBlendState | ( | ) |
setBlendState(MBlendState) -> self Sets the active blend state on the device.
def OpenMayaRender.MStateManager.setDepthStencilState | ( | ) |
setDepthStencilState(MDepthStencilState) -> self Sets the active depth-stencil state on the device.
def OpenMayaRender.MStateManager.setRasterizerState | ( | ) |
setRasterizerState(MRasterizerState) -> self Sets the active rasterizer state on the device.
def OpenMayaRender.MStateManager.setSamplerState | ( | ) |
setSamplerState(shader, samplerIndex, samplerState) -> self Sets the active sampler state for any of the texture samplers on the device. * shader (ShaderType) - The shader this sampler will apply to, e.g. kPixelShader. * samplerIndex (int) - The index of the sampler to set with the given shader state. * samplerState (MSamplerState) - The sampler state container object that was previously acquired.