Struct ID3D11Device

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

Fields§

§lpVtbl: *const ID3D11DeviceVtbl

Implementations§

Source§

impl ID3D11Device

Source

pub unsafe fn CreateBuffer( &self, pDesc: *const D3D11_BUFFER_DESC, pInitialData: *const D3D11_SUBRESOURCE_DATA, ppBuffer: *mut *mut ID3D11Buffer, ) -> HRESULT

Source

pub unsafe fn CreateTexture1D( &self, pDesc: *const D3D11_TEXTURE1D_DESC, pInitialData: *const D3D11_SUBRESOURCE_DATA, ppTexture1D: *mut *mut ID3D11Texture1D, ) -> HRESULT

Source

pub unsafe fn CreateTexture2D( &self, pDesc: *const D3D11_TEXTURE2D_DESC, pInitialData: *const D3D11_SUBRESOURCE_DATA, ppTexture2D: *mut *mut ID3D11Texture2D, ) -> HRESULT

Source

pub unsafe fn CreateTexture3D( &self, pDesc: *const D3D11_TEXTURE3D_DESC, pInitialData: *const D3D11_SUBRESOURCE_DATA, ppTexture3D: *mut *mut ID3D11Texture3D, ) -> HRESULT

Source

pub unsafe fn CreateShaderResourceView( &self, pResource: *mut ID3D11Resource, pDesc: *const D3D11_SHADER_RESOURCE_VIEW_DESC, ppSRView: *mut *mut ID3D11ShaderResourceView, ) -> HRESULT

Source

pub unsafe fn CreateUnorderedAccessView( &self, pResource: *mut ID3D11Resource, pDesc: *const D3D11_UNORDERED_ACCESS_VIEW_DESC, ppUAView: *mut *mut ID3D11UnorderedAccessView, ) -> HRESULT

Source

pub unsafe fn CreateRenderTargetView( &self, pResource: *mut ID3D11Resource, pDesc: *const D3D11_RENDER_TARGET_VIEW_DESC, ppRTView: *mut *mut ID3D11RenderTargetView, ) -> HRESULT

Source

pub unsafe fn CreateDepthStencilView( &self, pResource: *mut ID3D11Resource, pDesc: *const D3D11_DEPTH_STENCIL_VIEW_DESC, ppDepthStencilView: *mut *mut ID3D11DepthStencilView, ) -> HRESULT

Source

pub unsafe fn CreateInputLayout( &self, pInputElementDescs: *const D3D11_INPUT_ELEMENT_DESC, NumElements: UINT, pShaderBytecodeWithInputSignature: *const c_void, BytecodeLength: SIZE_T, ppInputLayout: *mut *mut ID3D11InputLayout, ) -> HRESULT

Source

pub unsafe fn CreateVertexShader( &self, pShaderBytecode: *const c_void, BytecodeLength: SIZE_T, pClassLinkage: *mut ID3D11ClassLinkage, ppVertexShader: *mut *mut ID3D11VertexShader, ) -> HRESULT

Source

pub unsafe fn CreateGeometryShader( &self, pShaderBytecode: *const c_void, BytecodeLength: SIZE_T, pClassLinkage: *mut ID3D11ClassLinkage, ppGeometryShader: *mut *mut ID3D11GeometryShader, ) -> HRESULT

Source

pub unsafe fn CreateGeometryShaderWithStreamOutput( &self, pShaderBytecode: *const c_void, BytecodeLength: SIZE_T, pSODeclaration: *const D3D11_SO_DECLARATION_ENTRY, NumEntries: UINT, pBufferStrides: *const UINT, NumStrides: UINT, RasterizedStream: UINT, pClassLinkage: *mut ID3D11ClassLinkage, ppGeometryShader: *mut *mut ID3D11GeometryShader, ) -> HRESULT

Source

pub unsafe fn CreatePixelShader( &self, pShaderBytecode: *const c_void, BytecodeLength: SIZE_T, pClassLinkage: *mut ID3D11ClassLinkage, ppPixelShader: *mut *mut ID3D11PixelShader, ) -> HRESULT

Source

pub unsafe fn CreateHullShader( &self, pShaderBytecode: *const c_void, BytecodeLength: SIZE_T, pClassLinkage: *mut ID3D11ClassLinkage, ppHullShader: *mut *mut ID3D11HullShader, ) -> HRESULT

Source

pub unsafe fn CreateDomainShader( &self, pShaderBytecode: *const c_void, BytecodeLength: SIZE_T, pClassLinkage: *mut ID3D11ClassLinkage, ppDomainShader: *mut *mut ID3D11DomainShader, ) -> HRESULT

Source

pub unsafe fn CreateComputeShader( &self, pShaderBytecode: *const c_void, BytecodeLength: SIZE_T, pClassLinkage: *mut ID3D11ClassLinkage, ppComputeShader: *mut *mut ID3D11ComputeShader, ) -> HRESULT

Source

pub unsafe fn CreateClassLinkage( &self, ppLinkage: *mut *mut ID3D11ClassLinkage, ) -> HRESULT

Source

pub unsafe fn CreateBlendState( &self, pBlendStateDesc: *const D3D11_BLEND_DESC, ppBlendState: *mut *mut ID3D11BlendState, ) -> HRESULT

Source

pub unsafe fn CreateDepthStencilState( &self, pDepthStencilDesc: *const D3D11_DEPTH_STENCIL_DESC, ppDepthStencilState: *mut *mut ID3D11DepthStencilState, ) -> HRESULT

Source

pub unsafe fn CreateRasterizerState( &self, pRasterizerDesc: *const D3D11_RASTERIZER_DESC, ppRasterizerState: *mut *mut ID3D11RasterizerState, ) -> HRESULT

Source

pub unsafe fn CreateSamplerState( &self, pSamplerDesc: *const D3D11_SAMPLER_DESC, ppSamplerState: *mut *mut ID3D11SamplerState, ) -> HRESULT

Source

pub unsafe fn CreateQuery( &self, pQueryDesc: *const D3D11_QUERY_DESC, ppQuery: *mut *mut ID3D11Query, ) -> HRESULT

Source

pub unsafe fn CreatePredicate( &self, pPredicateDesc: *const D3D11_QUERY_DESC, ppPredicate: *mut *mut ID3D11Predicate, ) -> HRESULT

Source

pub unsafe fn CreateCounter( &self, pCounterDesc: *const D3D11_COUNTER_DESC, ppCounter: *mut *mut ID3D11Counter, ) -> HRESULT

Source

pub unsafe fn CreateDeferredContext( &self, ContextFlags: UINT, ppDeferredContext: *mut *mut ID3D11DeviceContext, ) -> HRESULT

Source

pub unsafe fn OpenSharedResource( &self, hResource: HANDLE, ReturnedInterface: REFIID, ppResource: *mut *mut c_void, ) -> HRESULT

Source

pub unsafe fn CheckFormatSupport( &self, Format: DXGI_FORMAT, pFormatSupport: *mut UINT, ) -> HRESULT

Source

pub unsafe fn CheckMultisampleQualityLevels( &self, Format: DXGI_FORMAT, SampleCount: UINT, pNumQualityLevels: *mut UINT, ) -> HRESULT

Source

pub unsafe fn CheckCounterInfo(&self, pCounterInfo: *mut D3D11_COUNTER_INFO)

Source

pub unsafe fn CheckCounter( &self, pDesc: *const D3D11_COUNTER_DESC, pType: *mut D3D11_COUNTER_TYPE, pActiveCounters: *mut UINT, szName: LPSTR, pNameLength: *mut UINT, szUnits: LPSTR, pUnitsLength: *mut UINT, szDescription: LPSTR, pDescriptionLength: *mut UINT, ) -> HRESULT

Source

pub unsafe fn CheckFeatureSupport( &self, Feature: D3D11_FEATURE, pFeatureSupportData: *mut c_void, FeatureSupportDataSize: UINT, ) -> HRESULT

Source

pub unsafe fn GetPrivateData( &self, guid: REFGUID, pDataSize: *mut UINT, pData: *mut c_void, ) -> HRESULT

Source

pub unsafe fn SetPrivateData( &self, guid: REFGUID, DataSize: UINT, pData: *const c_void, ) -> HRESULT

Source

pub unsafe fn SetPrivateDataInterface( &self, guid: REFGUID, pData: *const IUnknown, ) -> HRESULT

Source

pub unsafe fn GetFeatureLevel(&self) -> D3D_FEATURE_LEVEL

Source

pub unsafe fn GetCreationFlags(&self) -> UINT

Source

pub unsafe fn GetDeviceRemovedReason(&self) -> HRESULT

Source

pub unsafe fn GetImmediateContext( &self, ppImmediateContext: *mut *mut ID3D11DeviceContext, )

Source

pub unsafe fn SetExceptionMode(&self, RaiseFlags: UINT) -> HRESULT

Source

pub unsafe fn GetExceptionMode(&self) -> UINT

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 ID3D11Device

Source§

type Target = IUnknown

The resulting type after dereferencing.
Source§

fn deref(&self) -> &IUnknown

Dereferences the value.
Source§

impl Interface for ID3D11Device

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.