Struct ID2D1EffectContext

Source
#[repr(C)]
pub struct ID2D1EffectContext { pub lpVtbl: *const ID2D1EffectContextVtbl, }

Fields§

§lpVtbl: *const ID2D1EffectContextVtbl

Implementations§

Source§

impl ID2D1EffectContext

Source

pub unsafe fn GetDpi(&self, dpiX: *mut FLOAT, dpiY: *mut FLOAT)

Source

pub unsafe fn CreateEffect( &self, effectId: REFCLSID, effect: *mut *mut ID2D1Effect, ) -> HRESULT

Source

pub unsafe fn GetMaximumSupportedFeatureLevel( &self, featureLevels: *const D3D_FEATURE_LEVEL, featureLevelsCount: UINT32, maximumSupportedFeatureLevel: *mut D3D_FEATURE_LEVEL, ) -> HRESULT

Source

pub unsafe fn CreateTransformNodeFromEffect( &self, effect: *mut ID2D1Effect, transformNode: *mut *mut ID2D1TransformNode, ) -> HRESULT

Source

pub unsafe fn CreateBlendTransform( &self, numInputs: UINT32, blendDescription: D2D1_BLEND_DESCRIPTION, transform: *mut *mut ID2D1BlendTransform, ) -> HRESULT

Source

pub unsafe fn CreateBorderTransform( &self, extendModeX: D2D1_EXTEND_MODE, extendModeY: D2D1_EXTEND_MODE, transform: *mut *mut ID2D1BorderTransform, ) -> HRESULT

Source

pub unsafe fn CreateOffsetTransform( &self, offset: D2D_POINT_2L, transform: *mut *mut ID2D1OffsetTransform, ) -> HRESULT

Source

pub unsafe fn CreateBoundsAdjustmentTransform( &self, outputRectangle: *mut D2D_RECT_L, transform: ID2D1BoundsAdjustmentTransform, ) -> HRESULT

Source

pub unsafe fn LoadPixelShader( &self, shaderId: REFGUID, shaderBuffer: *const BYTE, shaderBufferCount: UINT32, ) -> HRESULT

Source

pub unsafe fn LoadVertexShader( &self, resourceId: REFGUID, shaderBuffer: *const BYTE, shaderBufferCount: UINT32, ) -> HRESULT

Source

pub unsafe fn LoadComputeShader( &self, resourceId: REFGUID, shaderBuffer: *const BYTE, shaderBufferCount: UINT32, ) -> HRESULT

Source

pub unsafe fn IsShaderLoaded(&self, shaderId: REFGUID) -> BOOL

Source

pub unsafe fn CreateResourceTexture( &self, resourceId: *const GUID, resourceTextureProperties: *const D2D1_RESOURCE_TEXTURE_PROPERTIES, data: *const BYTE, strides: *const UINT32, dataSize: UINT32, resourceTexture: *mut *mut ID2D1ResourceTexture, ) -> HRESULT

Source

pub unsafe fn FindResourceTexture( &self, resourceId: *const GUID, resourceTexture: *mut *mut ID2D1ResourceTexture, ) -> HRESULT

Source

pub unsafe fn CreateVertexBuffer( &self, vertexBufferProperties: *const D2D1_VERTEX_BUFFER_PROPERTIES, resourceId: *const GUID, customVertexBufferProperties: *const D2D1_CUSTOM_VERTEX_BUFFER_PROPERTIES, buffer: *mut *mut ID2D1VertexBuffer, ) -> HRESULT

Source

pub unsafe fn FindVertexBuffer( &self, resourceId: *const GUID, buffer: *mut *mut ID2D1VertexBuffer, ) -> HRESULT

Source

pub unsafe fn CreateColorContext( &self, space: D2D1_COLOR_SPACE, profile: *const BYTE, profileSize: UINT32, colorContext: *mut *mut ID2D1ColorContext, ) -> HRESULT

Source

pub unsafe fn CreateColorContextFromFilename( &self, filename: PCWSTR, colorContext: *mut *mut ID2D1ColorContext, ) -> HRESULT

Source

pub unsafe fn CreateColorContextFromWicColorContext( &self, wicColorContext: *mut IWICColorContext, colorContext: *mut *mut ID2D1ColorContext, ) -> HRESULT

Source

pub unsafe fn CheckFeatureSupport( &self, feature: D2D1_FEATURE, featureSupportData: *mut c_void, featureSupportDataSize: UINT32, ) -> HRESULT

Source

pub unsafe fn IsBufferPrecisionSupported( &self, bufferPrecision: D2D1_BUFFER_PRECISION, ) -> BOOL

Methods from Deref<Target = IUnknown>§

Source

pub unsafe fn QueryInterface( &self, riid: REFIID, ppvObject: *mut *mut c_void, ) -> HRESULT

Source

pub unsafe fn AddRef(&self) -> ULONG

Source

pub unsafe fn Release(&self) -> ULONG

Trait Implementations§

Source§

impl Deref for ID2D1EffectContext

Source§

type Target = IUnknown

The resulting type after dereferencing.
Source§

fn deref(&self) -> &IUnknown

Dereferences the value.
Source§

impl Interface for ID2D1EffectContext

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.