OpenGL Pipeline State¶
-
class
renderdoc.GLState¶ The full current OpenGL pipeline state.
-
depthState¶ A
GLDepthStatedescribing depth processing.
-
framebuffer¶ A
GLFrameBufferdescribing the framebuffer.
-
images¶ A list of
GLImageLoadStorewith the currently bound load/store images.
-
pipelineResourceId¶ The
ResourceIdof the program pipeline (if active).
-
rasterizer¶ A
GLRasterizerdescribing rasterization.
-
stencilState¶ A
GLStencilStatedescribing stencil processing.
-
transformFeedback¶ A
GLFeedbackdescribing the transform feedback stage.
-
vertexInput¶ A
GLVertexInputdescribing the vertex input stage.
-
vertexProcessing¶ A
GLFixedVertexProcessingdescribing the fixed-function vertex processing stage.
-
-
class
renderdoc.GLVertexAttribute¶ Describes the configuration for a single vertex attribute.
Note
If old-style vertex attrib pointer setup was used for the vertex attributes then it will be decomposed into 1:1 attributes and buffers.
-
byteOffset¶ The byte offset from the start of the vertex data in the vertex buffer from
vertexBufferSlot.
-
enabled¶ Trueif this vertex attribute is enabled.
-
format¶ The
ResourceFormatof the vertex attribute.
-
genericValue¶ A
PixelValuecontaining the generic value of a vertex attribute.
-
vertexBufferSlot¶ The vertex buffer input slot where the data is sourced from.
-
-
class
renderdoc.GLVertexBuffer¶ Describes a single OpenGL vertex buffer binding.
-
byteOffset¶ The byte offset from the start of the buffer to the beginning of the vertex data.
-
byteStride¶ The byte stride between the start of one set of vertex data and the next.
-
instanceDivisor¶ The instance rate divisor.
If this is
0then the vertex buffer is read at vertex rate.If it’s
1then one element is read for each instance, and forNgreater than1thenNinstances read the same element before advancing.
-
resourceId¶ The
ResourceIdof the buffer bound to this slot.
-
-
class
renderdoc.GLVertexInput¶ Describes the setup for fixed-function vertex input fetch.
-
attributes¶ A list of
GLVertexAttributewith the vertex attributes.
-
indexBuffer¶ The
ResourceIdof the index buffer.
-
primitiveRestart¶ Trueif primitive restart is enabled for strip primitives.
-
provokingVertexLast¶ Trueif the provoking vertex is the last one in the primitive.Falseif the provoking vertex is the first one.
-
restartIndex¶ The index value to use to indicate a strip restart.
-
vertexArrayObject¶ The
ResourceIdof the vertex array object that’s bound.
-
vertexBuffers¶ A list of
GLVertexBufferwith the vertex buffers.
-
-
class
renderdoc.GLShader¶ Describes an OpenGL shader stage.
-
bindpointMapping¶ A
ShaderBindpointMappingto matchreflectionwith the bindpoint mapping data.
-
programResourceId¶ The
ResourceIdof the program bound to this stage.
-
reflection¶ A
ShaderReflectiondescribing the reflection data for this shader.
-
shaderResourceId¶ The
ResourceIdof the shader object itself.
-
stage¶ A
ShaderStageidentifying which stage this shader is bound to.
-
subroutines¶ A list of integers with the subroutine values.
-
-
class
renderdoc.GLFixedVertexProcessing¶ Describes the setup for fixed vertex processing operations.
-
clipNegativeOneToOne¶ Trueif the clip-space Z goes from-1to1.Falseif the clip-space Z goes from0to1.
-
clipOriginLowerLeft¶ Trueif the clipping origin should be in the lower left.Falseif it’s in the upper left.
-
clipPlanes¶ A list of
booldetermining which user clipping planes are enabled.
-
defaultInnerLevel¶ A list of
floatgiving the default inner level of tessellation.
-
defaultOuterLevel¶ A list of
floatgiving the default outer level of tessellation.
-
discard¶ Trueif primitives should be discarded during rasterization.
-
-
class
renderdoc.GLTexture¶ Describes the details of a texture.
-
depthReadChannel¶ The channel to read from in a depth-stencil texture.
-1for non depth-stencil textures.0if depth should be read.1if stencil should be read.
-
firstMip¶ Valid for textures - the highest mip that is available.
-
firstSlice¶ Valid for texture arrays or 3D textures - the first slice available.
-
resourceId¶ The
ResourceIdof the underlying resource the view refers to.
-
swizzle¶ Four
TextureSwizzleelements indicating the swizzle applied to this texture.
-
type¶ The
TextureTypeof the texture.
-
-
class
renderdoc.GLSampler¶ Describes the sampler properties of a texture.
-
UseBorder()¶ Check if the border color is used in this OpenGL sampler.
Returns: Trueif the border color is used,Falseotherwise.Return type: bool
-
addressR¶ The
AddressModein the R direction.
-
addressS¶ The
AddressModein the S direction.
-
addressT¶ The
AddressModein the T direction.
-
borderColor¶ The RGBA border color.
-
compareFunction¶ The
CompareFunctionfor comparison samplers.
-
filter¶ The
TextureFilterdescribing the filtering mode.
-
maxAnisotropy¶ The maximum anisotropic filtering level to use.
-
maxLOD¶ The maximum mip level that can be used.
-
minLOD¶ The minimum mip level that can be used.
-
mipLODBias¶ A bias to apply to the calculated mip level before sampling.
-
resourceId¶ The
ResourceIdof the sampler object, if a separate one is set.
-
seamlessCubeMap¶ Trueif seamless cubemap filtering is enabled for this texture.
-
-
class
renderdoc.GLBuffer¶ Describes the properties of a buffer.
-
byteOffset¶ The byte offset from the start of the buffer.
-
byteSize¶ The byte size of the buffer.
-
resourceId¶ The
ResourceIdof the buffer object.
-
-
class
renderdoc.GLImageLoadStore¶ Describes the properties of a load/store image.
-
imageFormat¶ The
ResourceFormatthat the image is bound as.
-
layered¶ Trueif multiple layers are bound together to the image.Falseif only one layer is bound.
-
mipLevel¶ The mip of the texture that’s used in the attachment.
-
readAllowed¶ Trueif loading from the image is allowed.
-
resourceId¶ The
ResourceIdof the texture object.
-
slice¶ The slice of the texture that’s used in the attachment.
-
type¶ The
TextureTypeof the texture.
-
writeAllowed¶ Trueif storing to the image is allowed.
-
-
class
renderdoc.GLFeedback¶ Describes the current feedback state.
-
active¶ Trueif the transform feedback object is currently active.
-
bufferResourceId¶ A list of
ResourceIdwith the buffer bindings.
-
byteOffset¶ A list of
intwith the buffer byte offsets.
-
byteSize¶ A list of
intwith the buffer byte sizes.
-
feedbackResourceId¶ The
ResourceIdof the transform feedback binding.
-
paused¶ Trueif the transform feedback object is currently paused.
-
-
class
renderdoc.GLRasterizerState¶ Describes the rasterizer state toggles.
-
alphaToCoverage¶ Trueif alpha-to-coverage should be used when blending to an MSAA target.
-
alphaToOne¶ Trueif alpha-to-one should be used when blending to an MSAA target.
-
depthBias¶ The fixed depth bias value to apply to z-values.
-
depthClamp¶ Trueif pixels outside of the near and far depth planes should be clamped and to0.0to1.0and not clipped.
-
frontCCW¶ Trueif counter-clockwise polygons are front-facing.Falseif clockwise polygons are front-facing.
-
lineWidth¶ The fixed line width in pixels.
-
minSampleShadingRate¶ The minimum sample shading rate.
-
multisampleEnable¶ Trueif multisampling should be used during rendering.
-
offsetClamp¶ The clamp value for calculated depth bias from
depthBiasandslopeScaledDepthBias
-
pointFadeThreshold¶ The threshold value at which points are clipped if they exceed this size.
-
pointOriginUpperLeft¶ Trueif the point sprite texture origin is upper-left.Falseif lower-left.
-
pointSize¶ The fixed point size in pixels.
-
programmablePointSize¶ Trueif the point size can be programmably exported from a shader.
-
sampleCoverage¶ Trueif a temporary mask usingsampleCoverageValueshould be used to resolve the final output color.
-
sampleCoverageInvert¶ Trueif the temporary sample coverage mask should be inverted.
-
sampleCoverageValue¶ The sample coverage value used if
sampleCoverageisTrue.
-
sampleMask¶ Trueif the generated samples should be bitwiseANDmasked withsampleMaskValue.
-
sampleMaskValue¶ The sample mask value that should be masked against the generated coverage.
-
sampleShading¶ Trueif rendering should happen at sample-rate frequency.
-
slopeScaledDepthBias¶ The slope-scaled depth bias value to apply to z-values.
-
-
class
renderdoc.GLRasterizer¶ Describes the rasterization state of the OpenGL pipeline.
-
state¶ A
GLRasterizerStatewith the details of the rasterization state.
-
-
class
renderdoc.GLDepthState¶ Describes the depth state.
-
depthBounds¶ Trueif depth bounds tests should be applied.
-
depthEnable¶ Trueif depth testing should be performed.
-
depthFunction¶ The
CompareFunctionto use for testing depth values.
-
depthWrites¶ Trueif depth values should be written to the depth target.
-
farBound¶ The far plane bounding value.
-
nearBound¶ The near plane bounding value.
-
-
class
renderdoc.GLStencilState¶ Describes the stencil state.
-
backFace¶ A
StencilFacedescribing what happens for back-facing polygons.
-
frontFace¶ A
StencilFacedescribing what happens for front-facing polygons.
-
stencilEnable¶ Trueif stencil operations should be performed.
-
-
class
renderdoc.GLAttachment¶ Describes the state of a framebuffer attachment.
-
mipLevel¶ The mip of the texture that’s used in the attachment.
-
resourceId¶ The
ResourceIdof the texture bound to this attachment.
-
slice¶ The slice of the texture that’s used in the attachment.
-
swizzle¶ Four
TextureSwizzleelements indicating the swizzle applied to this texture.
-
-
class
renderdoc.GLFBO¶ Describes the contents of a framebuffer object.
-
colorAttachments¶ The list of
GLAttachmentwith the framebuffer color attachments.
-
depthAttachment¶ The
GLAttachmentwith the framebuffer depth attachment.
-
drawBuffers¶ The list of draw buffer indices into the
colorAttachmentsattachment list.
-
readBuffer¶ The read buffer index in the
colorAttachmentsattachment list.
-
resourceId¶ The
ResourceIdof the framebuffer.
-
stencilAttachment¶ The
GLAttachmentwith the framebuffer stencil attachment.
-
-
class
renderdoc.GLBlendState¶ Describes the blend pipeline state.
-
blendFactor¶ The constant blend factor to use in blend equations.
-
blends¶ A list of
ColorBlenddescribing the blend operations for each target.
-
-
class
renderdoc.GLFrameBuffer¶ Describes the current state of the framebuffer stage of the pipeline.
-
blendState¶ A
GLBlendStatewith the details of the blending state.
-
dither¶ Trueif dithering should be used when writing to color buffers.
-
framebufferSRGB¶ Trueif sRGB correction should be applied when writing to an sRGB-formatted texture.
-
-
class
renderdoc.GLHints¶ Describes the current state of GL hints and smoothing.
-
derivatives¶ A
QualityHintwith the derivatives hint.
-
lineSmoothing¶ A
QualityHintwith the line smoothing hint.
-
lineSmoothingEnabled¶ Trueif line smoothing is enabled.
-
polySmoothing¶ A
QualityHintwith the polygon smoothing hint.
-
polySmoothingEnabled¶ Trueif polygon smoothing is enabled.
-
textureCompression¶ A
QualityHintwith the texture compression hint.
-