ID2D1EffectContext interface (d2d1effectauthor.h)

Provides factory methods and other state management for effect and transform authors.

Inheritance

The ID2D1EffectContext interface inherits from the IUnknown interface. ID2D1EffectContext also has these types of members:

Methods

The ID2D1EffectContext interface has these methods.

 
ID2D1EffectContext::CheckFeatureSupport

This indicates whether an optional capability is supported by the D3D device.
ID2D1EffectContext::CreateBlendTransform

This creates a blend transform that can be inserted into a transform graph.
ID2D1EffectContext::CreateBorderTransform

Creates a transform that extends its input infinitely in every direction based on the passed in extend mode.
ID2D1EffectContext::CreateBoundsAdjustmentTransform

Creates and returns a bounds adjustment transform.
ID2D1EffectContext::CreateColorContext

Creates a color context from a color space.
ID2D1EffectContext::CreateColorContextFromFilename

Creates a color context by loading it from the specified filename. The profile bytes are the contents of the file specified by filename.
ID2D1EffectContext::CreateColorContextFromWicColorContext

Creates a color context from an IWICColorContext. The D2D1ColorContext space of the resulting context varies, see Remarks for more info. (ID2D1EffectContext.CreateColorContextFromWicColorContext)
ID2D1EffectContext::CreateEffect

Creates a Direct2D effect for the specified class ID.
ID2D1EffectContext::CreateOffsetTransform

Creates and returns an offset transform.
ID2D1EffectContext::CreateResourceTexture

Creates or finds the given resource texture, depending on whether a resource id is specified.
ID2D1EffectContext::CreateTransformNodeFromEffect

Wraps an effect graph into a single transform node and then inserted into a transform graph. This allows an effect to aggregate other effects.
ID2D1EffectContext::CreateVertexBuffer

Creates a vertex buffer or finds a standard vertex buffer and optionally initializes it with vertices.
ID2D1EffectContext::FindResourceTexture

Finds the given resource texture if it has already been created with ID2D1EffectContext::CreateResourceTexture with the same GUID.
ID2D1EffectContext::FindVertexBuffer

This finds the given vertex buffer if it has already been created with ID2D1EffectContext::CreateVertexBuffer with the same GUID.
ID2D1EffectContext::GetDpi

Gets the unit mapping that an effect will use for properties that could be in either dots per inch (dpi) or pixels.
ID2D1EffectContext::GetMaximumSupportedFeatureLevel

This indicates the maximum feature level from the provided list which is supported by the device.
ID2D1EffectContext::IsBufferPrecisionSupported

Indicates whether the buffer precision is supported by the underlying Direct2D device.
ID2D1EffectContext::IsShaderLoaded

This tests to see if the given shader is loaded.
ID2D1EffectContext::LoadComputeShader

Loads the given shader by its unique ID. (ID2D1EffectContext.LoadComputeShader)
ID2D1EffectContext::LoadPixelShader

Loads the given shader by its unique ID. (ID2D1EffectContext.LoadPixelShader)
ID2D1EffectContext::LoadVertexShader

Loads the given shader by its unique ID. (ID2D1EffectContext.LoadVertexShader)

Remarks

This interface is passed to an effect implementation through the ID2D1EffectImpl::Initialize method. In order to prevent applications casually gaining access to this interface, and to separate reference counts between the public and private interfaces, it is not possible to call QueryInterface between the ID2D1DeviceContext and the ID2D1EffectContext.

Each call to ID2D1Effect::Initialize will be provided a different ID2D1EffectContext interface. This interface tracks resource allocations for the effect. When the effect is released, the corresponding allocations will also be released.

Requirements

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1effectauthor.h

See also

ID2D1EffectImpl

ID2D1Factory::RegisterEffect

IUnknown