Struct mltg_bindings::Windows::Win32::Graphics::Direct3D11::ID3D11Device2 [−][src]
#[repr(transparent)]pub struct ID3D11Device2(_);
Implementations
pub unsafe fn CreateBuffer(
&self,
pdesc: *const D3D11_BUFFER_DESC,
pinitialdata: *const D3D11_SUBRESOURCE_DATA
) -> Result<ID3D11Buffer>
pub unsafe fn CreateTexture1D(
&self,
pdesc: *const D3D11_TEXTURE1D_DESC,
pinitialdata: *const D3D11_SUBRESOURCE_DATA
) -> Result<ID3D11Texture1D>
pub unsafe fn CreateTexture2D(
&self,
pdesc: *const D3D11_TEXTURE2D_DESC,
pinitialdata: *const D3D11_SUBRESOURCE_DATA
) -> Result<ID3D11Texture2D>
pub unsafe fn CreateTexture3D(
&self,
pdesc: *const D3D11_TEXTURE3D_DESC,
pinitialdata: *const D3D11_SUBRESOURCE_DATA
) -> Result<ID3D11Texture3D>
pub unsafe fn CreateShaderResourceView<'a>(
&self,
presource: impl IntoParam<'a, ID3D11Resource>,
pdesc: *const D3D11_SHADER_RESOURCE_VIEW_DESC
) -> Result<ID3D11ShaderResourceView>
pub unsafe fn CreateUnorderedAccessView<'a>(
&self,
presource: impl IntoParam<'a, ID3D11Resource>,
pdesc: *const D3D11_UNORDERED_ACCESS_VIEW_DESC
) -> Result<ID3D11UnorderedAccessView>
pub unsafe fn CreateRenderTargetView<'a>(
&self,
presource: impl IntoParam<'a, ID3D11Resource>,
pdesc: *const D3D11_RENDER_TARGET_VIEW_DESC
) -> Result<ID3D11RenderTargetView>
pub unsafe fn CreateDepthStencilView<'a>(
&self,
presource: impl IntoParam<'a, ID3D11Resource>,
pdesc: *const D3D11_DEPTH_STENCIL_VIEW_DESC
) -> Result<ID3D11DepthStencilView>
pub unsafe fn CreateInputLayout(
&self,
pinputelementdescs: *const D3D11_INPUT_ELEMENT_DESC,
numelements: u32,
pshaderbytecodewithinputsignature: *const c_void,
bytecodelength: usize
) -> Result<ID3D11InputLayout>
pub unsafe fn CreateVertexShader<'a>(
&self,
pshaderbytecode: *const c_void,
bytecodelength: usize,
pclasslinkage: impl IntoParam<'a, ID3D11ClassLinkage>
) -> Result<ID3D11VertexShader>
pub unsafe fn CreateGeometryShader<'a>(
&self,
pshaderbytecode: *const c_void,
bytecodelength: usize,
pclasslinkage: impl IntoParam<'a, ID3D11ClassLinkage>
) -> Result<ID3D11GeometryShader>
pub unsafe fn CreateGeometryShaderWithStreamOutput<'a>(
&self,
pshaderbytecode: *const c_void,
bytecodelength: usize,
psodeclaration: *const D3D11_SO_DECLARATION_ENTRY,
numentries: u32,
pbufferstrides: *const u32,
numstrides: u32,
rasterizedstream: u32,
pclasslinkage: impl IntoParam<'a, ID3D11ClassLinkage>
) -> Result<ID3D11GeometryShader>
pub unsafe fn CreatePixelShader<'a>(
&self,
pshaderbytecode: *const c_void,
bytecodelength: usize,
pclasslinkage: impl IntoParam<'a, ID3D11ClassLinkage>
) -> Result<ID3D11PixelShader>
pub unsafe fn CreateHullShader<'a>(
&self,
pshaderbytecode: *const c_void,
bytecodelength: usize,
pclasslinkage: impl IntoParam<'a, ID3D11ClassLinkage>
) -> Result<ID3D11HullShader>
pub unsafe fn CreateDomainShader<'a>(
&self,
pshaderbytecode: *const c_void,
bytecodelength: usize,
pclasslinkage: impl IntoParam<'a, ID3D11ClassLinkage>
) -> Result<ID3D11DomainShader>
pub unsafe fn CreateComputeShader<'a>(
&self,
pshaderbytecode: *const c_void,
bytecodelength: usize,
pclasslinkage: impl IntoParam<'a, ID3D11ClassLinkage>
) -> Result<ID3D11ComputeShader>
pub unsafe fn CreateBlendState(
&self,
pblendstatedesc: *const D3D11_BLEND_DESC
) -> Result<ID3D11BlendState>
pub unsafe fn CreateDepthStencilState(
&self,
pdepthstencildesc: *const D3D11_DEPTH_STENCIL_DESC
) -> Result<ID3D11DepthStencilState>
pub unsafe fn CreateRasterizerState(
&self,
prasterizerdesc: *const D3D11_RASTERIZER_DESC
) -> Result<ID3D11RasterizerState>
pub unsafe fn CreateSamplerState(
&self,
psamplerdesc: *const D3D11_SAMPLER_DESC
) -> Result<ID3D11SamplerState>
pub unsafe fn CreatePredicate(
&self,
ppredicatedesc: *const D3D11_QUERY_DESC
) -> Result<ID3D11Predicate>
pub unsafe fn CreateCounter(
&self,
pcounterdesc: *const D3D11_COUNTER_DESC
) -> Result<ID3D11Counter>
pub unsafe fn CheckMultisampleQualityLevels(
&self,
format: DXGI_FORMAT,
samplecount: u32
) -> Result<u32>
pub unsafe fn CheckCounter(
&self,
pdesc: *const D3D11_COUNTER_DESC,
ptype: *mut D3D11_COUNTER_TYPE,
pactivecounters: *mut u32,
szname: PSTR,
pnamelength: *mut u32,
szunits: PSTR,
punitslength: *mut u32,
szdescription: PSTR,
pdescriptionlength: *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: *mut c_void
) -> Result<()>
pub unsafe fn SetPrivateData(
&self,
guid: *const Guid,
datasize: u32,
pdata: *const c_void
) -> Result<()>
pub unsafe fn SetPrivateDataInterface<'a>(
&self,
guid: *const Guid,
pdata: impl IntoParam<'a, IUnknown>
) -> Result<()>
pub unsafe fn GetImmediateContext(
&self,
ppimmediatecontext: *mut Option<ID3D11DeviceContext>
)
pub unsafe fn GetImmediateContext1(
&self,
ppimmediatecontext: *mut Option<ID3D11DeviceContext1>
)
pub unsafe fn CreateDeferredContext1(
&self,
contextflags: u32
) -> Result<ID3D11DeviceContext1>
pub unsafe fn CreateBlendState1(
&self,
pblendstatedesc: *const D3D11_BLEND_DESC1
) -> Result<ID3D11BlendState1>
pub unsafe fn CreateRasterizerState1(
&self,
prasterizerdesc: *const D3D11_RASTERIZER_DESC1
) -> Result<ID3D11RasterizerState1>
pub unsafe fn CreateDeviceContextState(
&self,
flags: u32,
pfeaturelevels: *const D3D_FEATURE_LEVEL,
featurelevels: u32,
sdkversion: u32,
emulatedinterface: *const Guid,
pchosenfeaturelevel: *mut D3D_FEATURE_LEVEL,
ppcontextstate: *mut Option<ID3DDeviceContextState>
) -> Result<()>
pub unsafe fn GetImmediateContext2(
&self,
ppimmediatecontext: *mut Option<ID3D11DeviceContext2>
)
pub unsafe fn CreateDeferredContext2(
&self,
contextflags: u32
) -> Result<ID3D11DeviceContext2>
pub unsafe fn GetResourceTiling<'a>(
&self,
ptiledresource: impl IntoParam<'a, ID3D11Resource>,
pnumtilesforentireresource: *mut u32,
ppackedmipdesc: *mut D3D11_PACKED_MIP_DESC,
pstandardtileshapefornonpackedmips: *mut D3D11_TILE_SHAPE,
pnumsubresourcetilings: *mut u32,
firstsubresourcetilingtoget: u32,
psubresourcetilingsfornonpackedmips: *mut D3D11_SUBRESOURCE_TILING
)
pub unsafe fn CheckMultisampleQualityLevels1(
&self,
format: DXGI_FORMAT,
samplecount: u32,
flags: u32
) -> Result<u32>
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ID3D11Device2
impl !Send for ID3D11Device2
impl !Sync for ID3D11Device2
impl Unpin for ID3D11Device2
impl UnwindSafe for ID3D11Device2
Blanket Implementations
type DefaultType = Option<T>
Converts from Self::DefaultType
to Result<T>
.
Returns a pointer for setting the object’s value via an ABI call.
Mutably borrows from an owned value. Read more