Struct windows::Win32::Graphics::Direct3D11::ID3D11Device2
pub struct ID3D11Device2(/* private fields */);
Implementations§
§impl ID3D11Device2
impl 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<()>
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 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 ID3D11Device2
impl CanInto<ID3D11Device> for ID3D11Device2
§impl CanInto<ID3D11Device1> for ID3D11Device2
impl CanInto<ID3D11Device1> for ID3D11Device2
§impl CanInto<ID3D11Device2> for ID3D11Device3
impl CanInto<ID3D11Device2> for ID3D11Device3
§impl CanInto<ID3D11Device2> for ID3D11Device4
impl CanInto<ID3D11Device2> for ID3D11Device4
§impl CanInto<ID3D11Device2> for ID3D11Device5
impl CanInto<ID3D11Device2> for ID3D11Device5
§impl CanInto<IUnknown> for ID3D11Device2
impl CanInto<IUnknown> for ID3D11Device2
§impl Clone for ID3D11Device2
impl Clone for ID3D11Device2
§fn clone(&self) -> ID3D11Device2
fn clone(&self) -> ID3D11Device2
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ID3D11Device2
impl Debug for ID3D11Device2
§impl Deref for ID3D11Device2
impl Deref for ID3D11Device2
§impl From<&ID3D11Device2> for &ID3D11Device
impl From<&ID3D11Device2> for &ID3D11Device
§fn from(value: &ID3D11Device2) -> Self
fn from(value: &ID3D11Device2) -> Self
Converts to this type from the input type.
§impl From<&ID3D11Device2> for &ID3D11Device1
impl From<&ID3D11Device2> for &ID3D11Device1
§fn from(value: &ID3D11Device2) -> Self
fn from(value: &ID3D11Device2) -> Self
Converts to this type from the input type.
§impl From<&ID3D11Device2> for &IUnknown
impl From<&ID3D11Device2> for &IUnknown
§fn from(value: &ID3D11Device2) -> Self
fn from(value: &ID3D11Device2) -> Self
Converts to this type from the input type.
§impl From<&ID3D11Device3> for &ID3D11Device2
impl From<&ID3D11Device3> for &ID3D11Device2
§fn from(value: &ID3D11Device3) -> Self
fn from(value: &ID3D11Device3) -> Self
Converts to this type from the input type.
§impl From<&ID3D11Device4> for &ID3D11Device2
impl From<&ID3D11Device4> for &ID3D11Device2
§fn from(value: &ID3D11Device4) -> Self
fn from(value: &ID3D11Device4) -> Self
Converts to this type from the input type.
§impl From<&ID3D11Device5> for &ID3D11Device2
impl From<&ID3D11Device5> for &ID3D11Device2
§fn from(value: &ID3D11Device5) -> Self
fn from(value: &ID3D11Device5) -> Self
Converts to this type from the input type.
§impl From<ID3D11Device2> for ID3D11Device
impl From<ID3D11Device2> for ID3D11Device
§fn from(value: ID3D11Device2) -> Self
fn from(value: ID3D11Device2) -> Self
Converts to this type from the input type.
§impl From<ID3D11Device2> for ID3D11Device1
impl From<ID3D11Device2> for ID3D11Device1
§fn from(value: ID3D11Device2) -> Self
fn from(value: ID3D11Device2) -> Self
Converts to this type from the input type.
§impl From<ID3D11Device2> for IUnknown
impl From<ID3D11Device2> for IUnknown
§fn from(value: ID3D11Device2) -> Self
fn from(value: ID3D11Device2) -> Self
Converts to this type from the input type.
§impl From<ID3D11Device3> for ID3D11Device2
impl From<ID3D11Device3> for ID3D11Device2
§fn from(value: ID3D11Device3) -> Self
fn from(value: ID3D11Device3) -> Self
Converts to this type from the input type.
§impl From<ID3D11Device4> for ID3D11Device2
impl From<ID3D11Device4> for ID3D11Device2
§fn from(value: ID3D11Device4) -> Self
fn from(value: ID3D11Device4) -> Self
Converts to this type from the input type.
§impl From<ID3D11Device5> for ID3D11Device2
impl From<ID3D11Device5> for ID3D11Device2
§fn from(value: ID3D11Device5) -> Self
fn from(value: ID3D11Device5) -> Self
Converts to this type from the input type.
§impl Interface for ID3D11Device2
impl Interface for ID3D11Device2
§fn as_raw(&self) -> *mut c_void
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
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.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
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>,
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) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
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>,
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>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for ID3D11Device2
impl PartialEq for ID3D11Device2
§fn eq(&self, other: &ID3D11Device2) -> bool
fn eq(&self, other: &ID3D11Device2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ID3D11Device2
impl Send for ID3D11Device2
impl StructuralPartialEq for ID3D11Device2
impl Sync for ID3D11Device2
Auto Trait Implementations§
impl Freeze for ID3D11Device2
impl RefUnwindSafe for ID3D11Device2
impl Unpin for ID3D11Device2
impl UnwindSafe for ID3D11Device2
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)