Struct windows::Win32::Graphics::Direct3D11::ID3D11Device5

pub struct ID3D11Device5(/* private fields */);

Implementations§

§

impl ID3D11Device5

pub unsafe fn OpenSharedFence<P0, T>( &self, hfence: P0, result__: *mut Option<T>, ) -> Result<()>
where P0: Param<HANDLE>, T: Interface,

pub unsafe fn CreateFence<T>( &self, initialvalue: u64, flags: D3D11_FENCE_FLAG, result__: *mut Option<T>, ) -> Result<()>
where T: Interface,

Methods from Deref<Target = ID3D11Device4>§

pub unsafe fn RegisterDeviceRemovedEvent<P0>(&self, hevent: P0) -> Result<u32>
where P0: Param<HANDLE>,

pub unsafe fn UnregisterDeviceRemoved(&self, dwcookie: u32)

Methods from Deref<Target = ID3D11Device3>§

pub unsafe fn CreateTexture2D1( &self, pdesc1: *const D3D11_TEXTURE2D_DESC1, pinitialdata: Option<*const D3D11_SUBRESOURCE_DATA>, pptexture2d: Option<*mut Option<ID3D11Texture2D1>>, ) -> Result<()>

pub unsafe fn CreateTexture3D1( &self, pdesc1: *const D3D11_TEXTURE3D_DESC1, pinitialdata: Option<*const D3D11_SUBRESOURCE_DATA>, pptexture3d: Option<*mut Option<ID3D11Texture3D1>>, ) -> Result<()>

pub unsafe fn CreateRasterizerState2( &self, prasterizerdesc: *const D3D11_RASTERIZER_DESC2, pprasterizerstate: Option<*mut Option<ID3D11RasterizerState2>>, ) -> Result<()>

pub unsafe fn CreateShaderResourceView1<P0>( &self, presource: P0, pdesc1: Option<*const D3D11_SHADER_RESOURCE_VIEW_DESC1>, ppsrview1: Option<*mut Option<ID3D11ShaderResourceView1>>, ) -> Result<()>
where P0: Param<ID3D11Resource>,

pub unsafe fn CreateUnorderedAccessView1<P0>( &self, presource: P0, pdesc1: Option<*const D3D11_UNORDERED_ACCESS_VIEW_DESC1>, ppuaview1: Option<*mut Option<ID3D11UnorderedAccessView1>>, ) -> Result<()>
where P0: Param<ID3D11Resource>,

pub unsafe fn CreateRenderTargetView1<P0>( &self, presource: P0, pdesc1: Option<*const D3D11_RENDER_TARGET_VIEW_DESC1>, pprtview1: Option<*mut Option<ID3D11RenderTargetView1>>, ) -> Result<()>
where P0: Param<ID3D11Resource>,

pub unsafe fn CreateQuery1( &self, pquerydesc1: *const D3D11_QUERY_DESC1, ppquery1: Option<*mut Option<ID3D11Query1>>, ) -> Result<()>

pub unsafe fn GetImmediateContext3(&self) -> Result<ID3D11DeviceContext3>

pub unsafe fn CreateDeferredContext3( &self, contextflags: u32, ppdeferredcontext: Option<*mut Option<ID3D11DeviceContext3>>, ) -> Result<()>

pub unsafe fn WriteToSubresource<P0>( &self, pdstresource: P0, dstsubresource: u32, pdstbox: Option<*const D3D11_BOX>, psrcdata: *const c_void, srcrowpitch: u32, srcdepthpitch: u32, )
where P0: Param<ID3D11Resource>,

pub unsafe fn ReadFromSubresource<P0>( &self, pdstdata: *mut c_void, dstrowpitch: u32, dstdepthpitch: u32, psrcresource: P0, srcsubresource: u32, psrcbox: Option<*const D3D11_BOX>, )
where P0: Param<ID3D11Resource>,

Methods from Deref<Target = ID3D11Device2>§

pub unsafe fn GetImmediateContext2(&self) -> Result<ID3D11DeviceContext2>

pub unsafe fn CreateDeferredContext2( &self, contextflags: u32, ppdeferredcontext: Option<*mut Option<ID3D11DeviceContext2>>, ) -> Result<()>

pub unsafe fn GetResourceTiling<P0>( &self, ptiledresource: P0, pnumtilesforentireresource: Option<*mut u32>, ppackedmipdesc: Option<*mut D3D11_PACKED_MIP_DESC>, pstandardtileshapefornonpackedmips: Option<*mut D3D11_TILE_SHAPE>, pnumsubresourcetilings: Option<*mut u32>, firstsubresourcetilingtoget: u32, psubresourcetilingsfornonpackedmips: *mut D3D11_SUBRESOURCE_TILING, )
where P0: Param<ID3D11Resource>,

pub unsafe fn CheckMultisampleQualityLevels1( &self, format: DXGI_FORMAT, samplecount: u32, flags: u32, ) -> Result<u32>

Methods from Deref<Target = ID3D11Device1>§

pub unsafe fn GetImmediateContext1(&self) -> Result<ID3D11DeviceContext1>

pub unsafe fn CreateDeferredContext1( &self, contextflags: u32, ppdeferredcontext: Option<*mut Option<ID3D11DeviceContext1>>, ) -> Result<()>

pub unsafe fn CreateBlendState1( &self, pblendstatedesc: *const D3D11_BLEND_DESC1, ppblendstate: Option<*mut Option<ID3D11BlendState1>>, ) -> Result<()>

pub unsafe fn CreateRasterizerState1( &self, prasterizerdesc: *const D3D11_RASTERIZER_DESC1, pprasterizerstate: Option<*mut Option<ID3D11RasterizerState1>>, ) -> Result<()>

pub unsafe fn CreateDeviceContextState( &self, flags: u32, pfeaturelevels: &[D3D_FEATURE_LEVEL], sdkversion: u32, emulatedinterface: *const GUID, pchosenfeaturelevel: Option<*mut D3D_FEATURE_LEVEL>, ppcontextstate: Option<*mut Option<ID3DDeviceContextState>>, ) -> Result<()>

pub unsafe fn OpenSharedResource1<P0, T>(&self, hresource: P0) -> Result<T>
where P0: Param<HANDLE>, T: Interface,

pub unsafe fn OpenSharedResourceByName<P0, T>( &self, lpname: P0, dwdesiredaccess: u32, ) -> Result<T>
where P0: Param<PCWSTR>, T: Interface,

Methods from Deref<Target = ID3D11Device>§

pub unsafe fn CreateBuffer( &self, pdesc: *const D3D11_BUFFER_DESC, pinitialdata: Option<*const D3D11_SUBRESOURCE_DATA>, ppbuffer: Option<*mut Option<ID3D11Buffer>>, ) -> Result<()>

pub unsafe fn CreateTexture1D( &self, pdesc: *const D3D11_TEXTURE1D_DESC, pinitialdata: Option<*const D3D11_SUBRESOURCE_DATA>, pptexture1d: Option<*mut Option<ID3D11Texture1D>>, ) -> Result<()>

pub unsafe fn CreateTexture2D( &self, pdesc: *const D3D11_TEXTURE2D_DESC, pinitialdata: Option<*const D3D11_SUBRESOURCE_DATA>, pptexture2d: Option<*mut Option<ID3D11Texture2D>>, ) -> Result<()>

pub unsafe fn CreateTexture3D( &self, pdesc: *const D3D11_TEXTURE3D_DESC, pinitialdata: Option<*const D3D11_SUBRESOURCE_DATA>, pptexture3d: Option<*mut Option<ID3D11Texture3D>>, ) -> Result<()>

pub unsafe fn CreateShaderResourceView<P0>( &self, presource: P0, pdesc: Option<*const D3D11_SHADER_RESOURCE_VIEW_DESC>, ppsrview: Option<*mut Option<ID3D11ShaderResourceView>>, ) -> Result<()>
where P0: Param<ID3D11Resource>,

pub unsafe fn CreateUnorderedAccessView<P0>( &self, presource: P0, pdesc: Option<*const D3D11_UNORDERED_ACCESS_VIEW_DESC>, ppuaview: Option<*mut Option<ID3D11UnorderedAccessView>>, ) -> Result<()>
where P0: Param<ID3D11Resource>,

pub unsafe fn CreateRenderTargetView<P0>( &self, presource: P0, pdesc: Option<*const D3D11_RENDER_TARGET_VIEW_DESC>, pprtview: Option<*mut Option<ID3D11RenderTargetView>>, ) -> Result<()>
where P0: Param<ID3D11Resource>,

pub unsafe fn CreateDepthStencilView<P0>( &self, presource: P0, pdesc: Option<*const D3D11_DEPTH_STENCIL_VIEW_DESC>, ppdepthstencilview: Option<*mut Option<ID3D11DepthStencilView>>, ) -> Result<()>
where P0: Param<ID3D11Resource>,

pub unsafe fn CreateInputLayout( &self, pinputelementdescs: &[D3D11_INPUT_ELEMENT_DESC], pshaderbytecodewithinputsignature: &[u8], ppinputlayout: Option<*mut Option<ID3D11InputLayout>>, ) -> Result<()>

pub unsafe fn CreateVertexShader<P0>( &self, pshaderbytecode: &[u8], pclasslinkage: P0, ppvertexshader: Option<*mut Option<ID3D11VertexShader>>, ) -> Result<()>
where P0: Param<ID3D11ClassLinkage>,

pub unsafe fn CreateGeometryShader<P0>( &self, pshaderbytecode: &[u8], pclasslinkage: P0, ppgeometryshader: Option<*mut Option<ID3D11GeometryShader>>, ) -> Result<()>
where P0: Param<ID3D11ClassLinkage>,

pub unsafe fn CreateGeometryShaderWithStreamOutput<P0>( &self, pshaderbytecode: &[u8], psodeclaration: Option<&[D3D11_SO_DECLARATION_ENTRY]>, pbufferstrides: Option<&[u32]>, rasterizedstream: u32, pclasslinkage: P0, ppgeometryshader: Option<*mut Option<ID3D11GeometryShader>>, ) -> Result<()>
where P0: Param<ID3D11ClassLinkage>,

pub unsafe fn CreatePixelShader<P0>( &self, pshaderbytecode: &[u8], pclasslinkage: P0, pppixelshader: Option<*mut Option<ID3D11PixelShader>>, ) -> Result<()>
where P0: Param<ID3D11ClassLinkage>,

pub unsafe fn CreateHullShader<P0>( &self, pshaderbytecode: &[u8], pclasslinkage: P0, pphullshader: Option<*mut Option<ID3D11HullShader>>, ) -> Result<()>
where P0: Param<ID3D11ClassLinkage>,

pub unsafe fn CreateDomainShader<P0>( &self, pshaderbytecode: &[u8], pclasslinkage: P0, ppdomainshader: Option<*mut Option<ID3D11DomainShader>>, ) -> Result<()>
where P0: Param<ID3D11ClassLinkage>,

pub unsafe fn CreateComputeShader<P0>( &self, pshaderbytecode: &[u8], pclasslinkage: P0, ppcomputeshader: Option<*mut Option<ID3D11ComputeShader>>, ) -> Result<()>
where P0: Param<ID3D11ClassLinkage>,

pub unsafe fn CreateClassLinkage(&self) -> Result<ID3D11ClassLinkage>

pub unsafe fn CreateBlendState( &self, pblendstatedesc: *const D3D11_BLEND_DESC, ppblendstate: Option<*mut Option<ID3D11BlendState>>, ) -> Result<()>

pub unsafe fn CreateDepthStencilState( &self, pdepthstencildesc: *const D3D11_DEPTH_STENCIL_DESC, ppdepthstencilstate: Option<*mut Option<ID3D11DepthStencilState>>, ) -> Result<()>

pub unsafe fn CreateRasterizerState( &self, prasterizerdesc: *const D3D11_RASTERIZER_DESC, pprasterizerstate: Option<*mut Option<ID3D11RasterizerState>>, ) -> Result<()>

pub unsafe fn CreateSamplerState( &self, psamplerdesc: *const D3D11_SAMPLER_DESC, ppsamplerstate: Option<*mut Option<ID3D11SamplerState>>, ) -> Result<()>

pub unsafe fn CreateQuery( &self, pquerydesc: *const D3D11_QUERY_DESC, ppquery: Option<*mut Option<ID3D11Query>>, ) -> Result<()>

pub unsafe fn CreatePredicate( &self, ppredicatedesc: *const D3D11_QUERY_DESC, pppredicate: Option<*mut Option<ID3D11Predicate>>, ) -> Result<()>

pub unsafe fn CreateCounter( &self, pcounterdesc: *const D3D11_COUNTER_DESC, ppcounter: Option<*mut Option<ID3D11Counter>>, ) -> Result<()>

pub unsafe fn CreateDeferredContext( &self, contextflags: u32, ppdeferredcontext: Option<*mut Option<ID3D11DeviceContext>>, ) -> Result<()>

pub unsafe fn OpenSharedResource<P0, T>( &self, hresource: P0, result__: *mut Option<T>, ) -> Result<()>
where P0: Param<HANDLE>, T: Interface,

pub unsafe fn CheckFormatSupport(&self, format: DXGI_FORMAT) -> Result<u32>

pub unsafe fn CheckMultisampleQualityLevels( &self, format: DXGI_FORMAT, samplecount: u32, ) -> Result<u32>

pub unsafe fn CheckCounterInfo(&self) -> D3D11_COUNTER_INFO

pub unsafe fn CheckCounter( &self, pdesc: *const D3D11_COUNTER_DESC, ptype: *mut D3D11_COUNTER_TYPE, pactivecounters: *mut u32, szname: PSTR, pnamelength: Option<*mut u32>, szunits: PSTR, punitslength: Option<*mut u32>, szdescription: PSTR, pdescriptionlength: Option<*mut u32>, ) -> Result<()>

pub unsafe fn CheckFeatureSupport( &self, feature: D3D11_FEATURE, pfeaturesupportdata: *mut c_void, featuresupportdatasize: u32, ) -> Result<()>

pub unsafe fn GetPrivateData( &self, guid: *const GUID, pdatasize: *mut u32, pdata: Option<*mut c_void>, ) -> Result<()>

pub unsafe fn SetPrivateData( &self, guid: *const GUID, datasize: u32, pdata: Option<*const c_void>, ) -> Result<()>

pub unsafe fn SetPrivateDataInterface<P0>( &self, guid: *const GUID, pdata: P0, ) -> Result<()>
where P0: Param<IUnknown>,

pub unsafe fn GetFeatureLevel(&self) -> D3D_FEATURE_LEVEL

pub unsafe fn GetCreationFlags(&self) -> u32

pub unsafe fn GetDeviceRemovedReason(&self) -> Result<()>

pub unsafe fn GetImmediateContext(&self) -> Result<ID3D11DeviceContext>

pub unsafe fn SetExceptionMode(&self, raiseflags: u32) -> Result<()>

pub unsafe fn GetExceptionMode(&self) -> u32

Trait Implementations§

§

impl CanInto<ID3D11Device> for ID3D11Device5

§

const QUERY: bool = false

§

impl CanInto<ID3D11Device1> for ID3D11Device5

§

const QUERY: bool = false

§

impl CanInto<ID3D11Device2> for ID3D11Device5

§

const QUERY: bool = false

§

impl CanInto<ID3D11Device3> for ID3D11Device5

§

const QUERY: bool = false

§

impl CanInto<ID3D11Device4> for ID3D11Device5

§

const QUERY: bool = false

§

impl CanInto<IUnknown> for ID3D11Device5

§

const QUERY: bool = false

§

impl Clone for ID3D11Device5

§

fn clone(&self) -> ID3D11Device5

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ID3D11Device5

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Deref for ID3D11Device5

§

type Target = ID3D11Device4

The resulting type after dereferencing.
§

fn deref(&self) -> &Self::Target

Dereferences the value.
§

impl From<&ID3D11Device5> for &ID3D11Device

§

fn from(value: &ID3D11Device5) -> Self

Converts to this type from the input type.
§

impl From<&ID3D11Device5> for &ID3D11Device1

§

fn from(value: &ID3D11Device5) -> Self

Converts to this type from the input type.
§

impl From<&ID3D11Device5> for &ID3D11Device2

§

fn from(value: &ID3D11Device5) -> Self

Converts to this type from the input type.
§

impl From<&ID3D11Device5> for &ID3D11Device3

§

fn from(value: &ID3D11Device5) -> Self

Converts to this type from the input type.
§

impl From<&ID3D11Device5> for &ID3D11Device4

§

fn from(value: &ID3D11Device5) -> Self

Converts to this type from the input type.
§

impl From<&ID3D11Device5> for &IUnknown

§

fn from(value: &ID3D11Device5) -> Self

Converts to this type from the input type.
§

impl From<ID3D11Device5> for ID3D11Device

§

fn from(value: ID3D11Device5) -> Self

Converts to this type from the input type.
§

impl From<ID3D11Device5> for ID3D11Device1

§

fn from(value: ID3D11Device5) -> Self

Converts to this type from the input type.
§

impl From<ID3D11Device5> for ID3D11Device2

§

fn from(value: ID3D11Device5) -> Self

Converts to this type from the input type.
§

impl From<ID3D11Device5> for ID3D11Device3

§

fn from(value: ID3D11Device5) -> Self

Converts to this type from the input type.
§

impl From<ID3D11Device5> for ID3D11Device4

§

fn from(value: ID3D11Device5) -> Self

Converts to this type from the input type.
§

impl From<ID3D11Device5> for IUnknown

§

fn from(value: ID3D11Device5) -> Self

Converts to this type from the input type.
§

impl Interface for ID3D11Device5

§

const IID: GUID = _

The GUID associated with the interface.
§

fn as_raw(&self) -> *mut c_void

Returns the raw COM interface pointer. The resulting pointer continues to be owned by the Interface implementation.
§

fn into_raw(self) -> *mut c_void

Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§

unsafe fn from_raw(raw: *mut c_void) -> Self

Creates an Interface by taking ownership of the raw COM interface pointer. Read more
§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

Creates an Interface that is valid so long as the raw COM interface pointer is valid. Read more
§

fn cast<T>(&self) -> Result<T, Error>
where T: Interface,

Attempts to cast the current interface to another interface using QueryInterface. Read more
§

fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. Read more
§

fn is_object<T>(&self) -> bool
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

Returns true if the given COM interface refers to an implementation of T. Read more
§

fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. It returns a reference to the “outer” object, e.g. &MyApp_Impl, not the inner &MyApp object. Read more
§

fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. It returns a reference to the “outer” object, e.g. MyApp_Impl, not the inner MyApp object. Read more
§

fn downgrade(&self) -> Result<Weak<Self>, Error>

Attempts to create a [Weak] reference to this object.
§

unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT

Call QueryInterface on this interface Read more
§

fn to_ref(&self) -> InterfaceRef<'_, Self>

Creates an InterfaceRef for this reference. The InterfaceRef tracks lifetimes statically, and eliminates the need for dynamic reference count adjustments (AddRef/Release).
§

impl PartialEq for ID3D11Device5

§

fn eq(&self, other: &ID3D11Device5) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for ID3D11Device5

§

impl Send for ID3D11Device5

§

impl StructuralPartialEq for ID3D11Device5

§

impl Sync for ID3D11Device5

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> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.