d3d11.View

A view from a resource.

Methods

class View
View(resource) → View

Creates a new View from a resource. Resource can be a d3d11.Buffer or a d3d11.Texture.

clearDepthStencil(float depth=1.0, int stencil=0) → None

Clears the depth view (and stencil values if it has them). Depth can be from 0.0 to 1.0 and stencil can be from 0 to 255.

clearRenderTarget([(0, 0, 0, 0)]) → None

Clears the render target view with given color (RGBA). Values can be from 0.0 to 1.0.

clearUnorderedAccessInt([(0, 0, 0, 0)]) → None

Clears the unordered access view with given integer values.

clearUnorderedAccessFloat([(0.0, 0.0, 0.0, 0.0)]) → None

Clears the unordered access view with given float values.

hasDepthStencil() → bool

Returns True if the View has a depth stencil view.

hasRenderTarget() → bool

Returns True if the View has a render target view.

hasShaderResource() → bool

Returns True if the View has a shader resource view.

hasUnorderedAccess() → bool

Returns True if the View has a unordered access view.

Table Of Contents

Get DirectPython 11 at SourceForge.net. Fast, secure and Free Open Source software downloads