Class D3D11Device
The device interface represents a virtual adapter; it is used to create resources.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
[SecurityCritical]
public class D3D11Device : DXComObject, IDisposable
Constructors
| Edit this page View SourceD3D11Device(nint)
Initializes a new instance of the D3D11Device class.
Declaration
public D3D11Device(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD3D11DeviceGuid
The interface GUID.
Declaration
public static readonly Guid D3D11DeviceGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| Edit this page View SourceCreationOptions
Gets the options used during the call to create the device.
Declaration
public D3D11CreateDeviceOptions CreationOptions { get; }
Property Value
| Type | Description |
|---|---|
| D3D11CreateDeviceOptions |
FeatureLevel
Gets the feature level of the hardware device.
Declaration
public D3D11FeatureLevel FeatureLevel { get; }
Property Value
| Type | Description |
|---|---|
| D3D11FeatureLevel |
Methods
| Edit this page View SourceCheckCounter(in D3D11CounterDesc, out D3D11CounterDataType, out uint)
Get the type, name, units of measure, and a description of an existing counter.
Declaration
public bool CheckCounter(in D3D11CounterDesc desc, out D3D11CounterDataType type, out uint activeCounters)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11CounterDesc | desc | A counter description. |
| D3D11CounterDataType | type | The data type of a counter. |
| uint | activeCounters | The number of hardware counters that are needed for this counter type to be created. All instances of the same counter type use the same hardware counters. |
Returns
| Type | Description |
|---|---|
| bool | A boolean value. |
CheckCounter(in D3D11CounterDesc, out D3D11CounterDataType, out uint, Span<char>, Span<char>, Span<char>)
Get the type, name, units of measure, and a description of an existing counter.
Declaration
public bool CheckCounter(in D3D11CounterDesc desc, out D3D11CounterDataType type, out uint activeCounters, Span<char> name, Span<char> units, Span<char> description)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11CounterDesc | desc | A counter description. |
| D3D11CounterDataType | type | The data type of a counter. |
| uint | activeCounters | The number of hardware counters that are needed for this counter type to be created. All instances of the same counter type use the same hardware counters. |
| Span<char> | name | String to be filled with a brief name for the counter. |
| Span<char> | units | Name of the units a counter measures. |
| Span<char> | description | A description of the counter. |
Returns
| Type | Description |
|---|---|
| bool | A boolean value. |
CheckCounter(in D3D11CounterDesc, out D3D11CounterDataType, out uint, out string, out string, out string)
Get the type, name, units of measure, and a description of an existing counter.
Declaration
public bool CheckCounter(in D3D11CounterDesc desc, out D3D11CounterDataType type, out uint activeCounters, out string name, out string units, out string description)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11CounterDesc | desc | A counter description. |
| D3D11CounterDataType | type | The data type of a counter. |
| uint | activeCounters | The number of hardware counters that are needed for this counter type to be created. All instances of the same counter type use the same hardware counters. |
| string | name | String to be filled with a brief name for the counter. |
| string | units | Name of the units a counter measures. |
| string | description | A description of the counter. |
Returns
| Type | Description |
|---|---|
| bool | A boolean value. |
CheckCounter(in D3D11CounterDesc, out D3D11CounterDataType, out uint, out uint, out uint, out uint)
Get the type, name, units of measure, and a description of an existing counter.
Declaration
public bool CheckCounter(in D3D11CounterDesc desc, out D3D11CounterDataType type, out uint activeCounters, out uint nameSize, out uint unitsSize, out uint descriptionSize)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11CounterDesc | desc | A counter description. |
| D3D11CounterDataType | type | The data type of a counter. |
| uint | activeCounters | The number of hardware counters that are needed for this counter type to be created. All instances of the same counter type use the same hardware counters. |
| uint | nameSize | |
| uint | unitsSize | |
| uint | descriptionSize |
Returns
| Type | Description |
|---|---|
| bool | A boolean value. |
CheckCounterInfo()
Get a counter's information.
Declaration
public D3D11CounterInfo CheckCounterInfo()
Returns
| Type | Description |
|---|---|
| D3D11CounterInfo | A counter information. |
CheckFeatureSupport(D3D11Feature)
Gets information about the features that are supported by the current graphics driver.
Declaration
public object CheckFeatureSupport(D3D11Feature feature)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Feature | feature | Describes which feature to query for support. |
Returns
| Type | Description |
|---|---|
| object | A structure filled with data that describes the feature support. |
CheckFeatureSupportArchitectureInfo()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataArchitectureInfo CheckFeatureSupportArchitectureInfo()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataArchitectureInfo | A structure filled with data that describes the feature support. |
CheckFeatureSupportD3D10XHardwareOptions()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataD3D10XHardwareOptions CheckFeatureSupportD3D10XHardwareOptions()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataD3D10XHardwareOptions | A structure filled with data that describes the feature support. |
CheckFeatureSupportD3D11Options()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataD3D11Options CheckFeatureSupportD3D11Options()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataD3D11Options | A structure filled with data that describes the feature support. |
CheckFeatureSupportD3D11Options1()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataD3D11Options1 CheckFeatureSupportD3D11Options1()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataD3D11Options1 | A structure filled with data that describes the feature support. |
CheckFeatureSupportD3D9Options()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataD3D9Options CheckFeatureSupportD3D9Options()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataD3D9Options | A structure filled with data that describes the feature support. |
CheckFeatureSupportD3D9Options1()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataD3D9Options1 CheckFeatureSupportD3D9Options1()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataD3D9Options1 | A structure filled with data that describes the feature support. |
CheckFeatureSupportD3D9ShadowSupport()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataD3D9ShadowSupport CheckFeatureSupportD3D9ShadowSupport()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataD3D9ShadowSupport | A structure filled with data that describes the feature support. |
CheckFeatureSupportD3D9SimpleInstancingSupport()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataD3D9SimpleInstancingSupport CheckFeatureSupportD3D9SimpleInstancingSupport()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataD3D9SimpleInstancingSupport | A structure filled with data that describes the feature support. |
CheckFeatureSupportDoubles()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataDoubles CheckFeatureSupportDoubles()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataDoubles | A structure filled with data that describes the feature support. |
CheckFeatureSupportFormatSupport()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataFormatSupport CheckFeatureSupportFormatSupport()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataFormatSupport | A structure filled with data that describes the feature support. |
CheckFeatureSupportFormatSupport2()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataFormatSupport2 CheckFeatureSupportFormatSupport2()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataFormatSupport2 | A structure filled with data that describes the feature support. |
CheckFeatureSupportMarkerSupport()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataMarkerSupport CheckFeatureSupportMarkerSupport()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataMarkerSupport | A structure filled with data that describes the feature support. |
CheckFeatureSupportShaderMinPrecisionSupport()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataShaderMinPrecisionSupport CheckFeatureSupportShaderMinPrecisionSupport()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataShaderMinPrecisionSupport | A structure filled with data that describes the feature support. |
CheckFeatureSupportThreading()
Gets information about the features that are supported by the current graphics driver.
Declaration
public D3D11FeatureDataThreading CheckFeatureSupportThreading()
Returns
| Type | Description |
|---|---|
| D3D11FeatureDataThreading | A structure filled with data that describes the feature support. |
CheckFormatSupport(DxgiFormat, out D3D11FormatSupport)
Get the support of a given format on the installed video device.
Declaration
public bool CheckFormatSupport(DxgiFormat format, out D3D11FormatSupport formatSupport)
Parameters
| Type | Name | Description |
|---|---|---|
| DxgiFormat | format | A format for which to check for support. |
| D3D11FormatSupport | formatSupport | Describes how the specified format is supported on the installed device. |
Returns
| Type | Description |
|---|---|
| bool | A boolean value. |
CheckMultisampleQualityLevels(DxgiFormat, uint, out uint)
Get the number of quality levels available during multisampling.
Declaration
public bool CheckMultisampleQualityLevels(DxgiFormat format, uint sampleCount, out uint numQualityLevels)
Parameters
| Type | Name | Description |
|---|---|---|
| DxgiFormat | format | The texture format. |
| uint | sampleCount | The number of samples during multisampling. |
| uint | numQualityLevels | The number of quality levels supported by the adapter. |
Returns
| Type | Description |
|---|---|
| bool | A boolean value. |
CreateBlendState(in D3D11BlendDesc)
Create a blend-state object that encapsules blend state for the output-merger stage.
Declaration
public D3D11BlendState CreateBlendState(in D3D11BlendDesc desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11BlendDesc | desc | A blend-state description. |
Returns
| Type | Description |
|---|---|
| D3D11BlendState | The created blend-state object. |
CreateBuffer(in D3D11BufferDesc)
Creates a buffer (vertex buffer, index buffer, or shader constant buffer).
Declaration
public D3D11Buffer CreateBuffer(in D3D11BufferDesc desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11BufferDesc | desc | Describes the buffer. |
Returns
| Type | Description |
|---|---|
| D3D11Buffer | The buffer object created. |
CreateBuffer(in D3D11BufferDesc, in D3D11SubResourceData)
Creates a buffer (vertex buffer, index buffer, or shader constant buffer).
Declaration
public D3D11Buffer CreateBuffer(in D3D11BufferDesc desc, in D3D11SubResourceData data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11BufferDesc | desc | Describes the buffer. |
| D3D11SubResourceData | data | Describes the initialization data. |
Returns
| Type | Description |
|---|---|
| D3D11Buffer | The buffer object created. |
CreateBuffer(in D3D11BufferDesc, in D3D11SubResourceDataPtr)
Creates a buffer (vertex buffer, index buffer, or shader constant buffer).
Declaration
public D3D11Buffer CreateBuffer(in D3D11BufferDesc desc, in D3D11SubResourceDataPtr data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11BufferDesc | desc | Describes the buffer. |
| D3D11SubResourceDataPtr | data | Describes the initialization data. |
Returns
| Type | Description |
|---|---|
| D3D11Buffer | The buffer object created. |
CreateBuffer<T>(in D3D11BufferDesc, ReadOnlySpan<T>, uint, uint)
Creates a buffer (vertex buffer, index buffer, or shader constant buffer).
Declaration
public D3D11Buffer CreateBuffer<T>(in D3D11BufferDesc desc, ReadOnlySpan<T> data, uint sysMemPitch, uint sysMemSlicePitch) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11BufferDesc | desc | Describes the buffer. |
| ReadOnlySpan<T> | data | Describes the initialization data. |
| uint | sysMemPitch | The distance (in bytes) from the beginning of one line of a texture to the next line. |
| uint | sysMemSlicePitch | The distance (in bytes) from the beginning of one depth level to the next. |
Returns
| Type | Description |
|---|---|
| D3D11Buffer | The buffer object created. |
Type Parameters
| Name | Description |
|---|---|
| T | A array of struct. |
CreateBuffer<T>(in D3D11BufferDesc, in T, uint, uint)
Creates a buffer (vertex buffer, index buffer, or shader constant buffer).
Declaration
public D3D11Buffer CreateBuffer<T>(in D3D11BufferDesc desc, in T data, uint sysMemPitch, uint sysMemSlicePitch) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11BufferDesc | desc | Describes the buffer. |
| T | data | Describes the initialization data. |
| uint | sysMemPitch | The distance (in bytes) from the beginning of one line of a texture to the next line. |
| uint | sysMemSlicePitch | The distance (in bytes) from the beginning of one depth level to the next. |
Returns
| Type | Description |
|---|---|
| D3D11Buffer | The buffer object created. |
Type Parameters
| Name | Description |
|---|---|
| T | A struct. |
CreateBuffer<T>(in D3D11BufferDesc, T[]?, uint, uint)
Creates a buffer (vertex buffer, index buffer, or shader constant buffer).
Declaration
public D3D11Buffer CreateBuffer<T>(in D3D11BufferDesc desc, T[]? data, uint sysMemPitch, uint sysMemSlicePitch) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11BufferDesc | desc | Describes the buffer. |
| T[] | data | Describes the initialization data. |
| uint | sysMemPitch | The distance (in bytes) from the beginning of one line of a texture to the next line. |
| uint | sysMemSlicePitch | The distance (in bytes) from the beginning of one depth level to the next. |
Returns
| Type | Description |
|---|---|
| D3D11Buffer | The buffer object created. |
Type Parameters
| Name | Description |
|---|---|
| T | A array of struct. |
CreateClassLinkage()
Creates class linkage libraries to enable dynamic shader linkage.
Declaration
public D3D11ClassLinkage CreateClassLinkage()
Returns
| Type | Description |
|---|---|
| D3D11ClassLinkage | The created class linkage. |
CreateComputeShader(byte[]?)
Create a compute shader.
Declaration
public D3D11ComputeShader CreateComputeShader(byte[]? shaderBytecode)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled shader. |
Returns
| Type | Description |
|---|---|
| D3D11ComputeShader | The created compute shader. |
CreateComputeShader(byte[]?, D3D11ClassLinkage?)
Create a compute shader.
Declaration
public D3D11ComputeShader CreateComputeShader(byte[]? shaderBytecode, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled shader. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11ComputeShader | The created compute shader. |
CreateComputeShader(ReadOnlySpan<byte>)
Create a compute shader.
Declaration
public D3D11ComputeShader CreateComputeShader(ReadOnlySpan<byte> shaderBytecode)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled shader. |
Returns
| Type | Description |
|---|---|
| D3D11ComputeShader | The created compute shader. |
CreateComputeShader(ReadOnlySpan<byte>, D3D11ClassLinkage?)
Create a compute shader.
Declaration
public D3D11ComputeShader CreateComputeShader(ReadOnlySpan<byte> shaderBytecode, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled shader. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11ComputeShader | The created compute shader. |
CreateCounter(in D3D11CounterDesc)
Create a counter object for measuring GPU performance.
Declaration
public D3D11Counter CreateCounter(in D3D11CounterDesc desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11CounterDesc | desc | A counter description. |
Returns
| Type | Description |
|---|---|
| D3D11Counter | The created counter. |
CreateDeferredContext()
Creates a deferred context, which can record command lists.
Declaration
public D3D11DeviceContext CreateDeferredContext()
Returns
| Type | Description |
|---|---|
| D3D11DeviceContext | The created deferred context. |
CreateDepthStencilState(in D3D11DepthStencilDesc)
Create a depth-stencil state object that encapsulates depth-stencil test information for the output-merger stage.
Declaration
public D3D11DepthStencilState CreateDepthStencilState(in D3D11DepthStencilDesc desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11DepthStencilDesc | desc | A depth-stencil state description. |
Returns
| Type | Description |
|---|---|
| D3D11DepthStencilState | The created depth-stencil state object. |
CreateDepthStencilView(D3D11Resource?)
Create a depth-stencil view for accessing resource data.
Declaration
public D3D11DepthStencilView CreateDepthStencilView(D3D11Resource? resource)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Resource | resource | The resource that will serve as the depth-stencil surface. |
Returns
| Type | Description |
|---|---|
| D3D11DepthStencilView | The created depth-stencil view. |
CreateDepthStencilView(D3D11Resource?, in D3D11DepthStencilViewDesc?)
Create a depth-stencil view for accessing resource data.
Declaration
public D3D11DepthStencilView CreateDepthStencilView(D3D11Resource? resource, in D3D11DepthStencilViewDesc? desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Resource | resource | The resource that will serve as the depth-stencil surface. |
| D3D11DepthStencilViewDesc? | desc | A depth-stencil-view description. |
Returns
| Type | Description |
|---|---|
| D3D11DepthStencilView | The created depth-stencil view. |
CreateDomainShader(byte[]?)
Create a domain shader.
Declaration
public D3D11DomainShader CreateDomainShader(byte[]? shaderBytecode)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled shader. |
Returns
| Type | Description |
|---|---|
| D3D11DomainShader | The created domain shader. |
CreateDomainShader(byte[]?, D3D11ClassLinkage?)
Create a domain shader.
Declaration
public D3D11DomainShader CreateDomainShader(byte[]? shaderBytecode, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled shader. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11DomainShader | The created domain shader. |
CreateDomainShader(ReadOnlySpan<byte>)
Create a domain shader.
Declaration
public D3D11DomainShader CreateDomainShader(ReadOnlySpan<byte> shaderBytecode)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled shader. |
Returns
| Type | Description |
|---|---|
| D3D11DomainShader | The created domain shader. |
CreateDomainShader(ReadOnlySpan<byte>, D3D11ClassLinkage?)
Create a domain shader.
Declaration
public D3D11DomainShader CreateDomainShader(ReadOnlySpan<byte> shaderBytecode, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled shader. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11DomainShader | The created domain shader. |
CreateGeometryShader(byte[]?)
Create a geometry shader.
Declaration
public D3D11GeometryShader CreateGeometryShader(byte[]? shaderBytecode)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled shader. |
Returns
| Type | Description |
|---|---|
| D3D11GeometryShader | The created geometry shader. |
CreateGeometryShader(byte[]?, D3D11ClassLinkage?)
Create a geometry shader.
Declaration
public D3D11GeometryShader CreateGeometryShader(byte[]? shaderBytecode, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled shader. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11GeometryShader | The created geometry shader. |
CreateGeometryShader(ReadOnlySpan<byte>)
Create a geometry shader.
Declaration
public D3D11GeometryShader CreateGeometryShader(ReadOnlySpan<byte> shaderBytecode)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled shader. |
Returns
| Type | Description |
|---|---|
| D3D11GeometryShader | The created geometry shader. |
CreateGeometryShader(ReadOnlySpan<byte>, D3D11ClassLinkage?)
Create a geometry shader.
Declaration
public D3D11GeometryShader CreateGeometryShader(ReadOnlySpan<byte> shaderBytecode, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled shader. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11GeometryShader | The created geometry shader. |
CreateGeometryShaderWithStreamOutput(byte[]?, D3D11StreamOutputDeclarationEntry[]?, uint)
Creates a geometry shader that can write to streaming output buffers.
Declaration
public D3D11GeometryShader CreateGeometryShaderWithStreamOutput(byte[]? shaderBytecode, D3D11StreamOutputDeclarationEntry[]? streamOutputDeclaration, uint rasterizedStream)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled geometry shader for a standard geometry shader plus stream output. |
| D3D11StreamOutputDeclarationEntry[] | streamOutputDeclaration | A D3D11StreamOutputDeclarationEntry array. |
| uint | rasterizedStream | The index number of the stream to be sent to the rasterizer stage. |
Returns
| Type | Description |
|---|---|
| D3D11GeometryShader | The created geometry shader. |
CreateGeometryShaderWithStreamOutput(byte[]?, D3D11StreamOutputDeclarationEntry[]?, uint[]?, uint)
Creates a geometry shader that can write to streaming output buffers.
Declaration
public D3D11GeometryShader CreateGeometryShaderWithStreamOutput(byte[]? shaderBytecode, D3D11StreamOutputDeclarationEntry[]? streamOutputDeclaration, uint[]? bufferStrides, uint rasterizedStream)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled geometry shader for a standard geometry shader plus stream output. |
| D3D11StreamOutputDeclarationEntry[] | streamOutputDeclaration | A D3D11StreamOutputDeclarationEntry array. |
| uint[] | bufferStrides | An array of buffer strides; each stride is the size of an element for that buffer. |
| uint | rasterizedStream | The index number of the stream to be sent to the rasterizer stage. |
Returns
| Type | Description |
|---|---|
| D3D11GeometryShader | The created geometry shader. |
CreateGeometryShaderWithStreamOutput(byte[]?, D3D11StreamOutputDeclarationEntry[]?, uint[]?, uint, D3D11ClassLinkage?)
Creates a geometry shader that can write to streaming output buffers.
Declaration
public D3D11GeometryShader CreateGeometryShaderWithStreamOutput(byte[]? shaderBytecode, D3D11StreamOutputDeclarationEntry[]? streamOutputDeclaration, uint[]? bufferStrides, uint rasterizedStream, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled geometry shader for a standard geometry shader plus stream output. |
| D3D11StreamOutputDeclarationEntry[] | streamOutputDeclaration | A D3D11StreamOutputDeclarationEntry array. |
| uint[] | bufferStrides | An array of buffer strides; each stride is the size of an element for that buffer. |
| uint | rasterizedStream | The index number of the stream to be sent to the rasterizer stage. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11GeometryShader | The created geometry shader. |
CreateGeometryShaderWithStreamOutput(ReadOnlySpan<byte>, ReadOnlySpan<D3D11StreamOutputDeclarationEntry>, ReadOnlySpan<uint>, uint)
Creates a geometry shader that can write to streaming output buffers.
Declaration
public D3D11GeometryShader CreateGeometryShaderWithStreamOutput(ReadOnlySpan<byte> shaderBytecode, ReadOnlySpan<D3D11StreamOutputDeclarationEntry> streamOutputDeclaration, ReadOnlySpan<uint> bufferStrides, uint rasterizedStream)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled geometry shader for a standard geometry shader plus stream output. |
| ReadOnlySpan<D3D11StreamOutputDeclarationEntry> | streamOutputDeclaration | A D3D11StreamOutputDeclarationEntry array. |
| ReadOnlySpan<uint> | bufferStrides | An array of buffer strides; each stride is the size of an element for that buffer. |
| uint | rasterizedStream | The index number of the stream to be sent to the rasterizer stage. |
Returns
| Type | Description |
|---|---|
| D3D11GeometryShader | The created geometry shader. |
CreateGeometryShaderWithStreamOutput(ReadOnlySpan<byte>, ReadOnlySpan<D3D11StreamOutputDeclarationEntry>, ReadOnlySpan<uint>, uint, D3D11ClassLinkage?)
Creates a geometry shader that can write to streaming output buffers.
Declaration
public D3D11GeometryShader CreateGeometryShaderWithStreamOutput(ReadOnlySpan<byte> shaderBytecode, ReadOnlySpan<D3D11StreamOutputDeclarationEntry> streamOutputDeclaration, ReadOnlySpan<uint> bufferStrides, uint rasterizedStream, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled geometry shader for a standard geometry shader plus stream output. |
| ReadOnlySpan<D3D11StreamOutputDeclarationEntry> | streamOutputDeclaration | A D3D11StreamOutputDeclarationEntry array. |
| ReadOnlySpan<uint> | bufferStrides | An array of buffer strides; each stride is the size of an element for that buffer. |
| uint | rasterizedStream | The index number of the stream to be sent to the rasterizer stage. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11GeometryShader | The created geometry shader. |
CreateGeometryShaderWithStreamOutput(ReadOnlySpan<byte>, ReadOnlySpan<D3D11StreamOutputDeclarationEntry>, uint)
Creates a geometry shader that can write to streaming output buffers.
Declaration
public D3D11GeometryShader CreateGeometryShaderWithStreamOutput(ReadOnlySpan<byte> shaderBytecode, ReadOnlySpan<D3D11StreamOutputDeclarationEntry> streamOutputDeclaration, uint rasterizedStream)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled geometry shader for a standard geometry shader plus stream output. |
| ReadOnlySpan<D3D11StreamOutputDeclarationEntry> | streamOutputDeclaration | A D3D11StreamOutputDeclarationEntry array. |
| uint | rasterizedStream | The index number of the stream to be sent to the rasterizer stage. |
Returns
| Type | Description |
|---|---|
| D3D11GeometryShader | The created geometry shader. |
CreateHullShader(byte[]?)
Create a hull shader.
Declaration
public D3D11HullShader CreateHullShader(byte[]? shaderBytecode)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled shader. |
Returns
| Type | Description |
|---|---|
| D3D11HullShader | The created hull shader. |
CreateHullShader(byte[]?, D3D11ClassLinkage?)
Create a hull shader.
Declaration
public D3D11HullShader CreateHullShader(byte[]? shaderBytecode, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled shader. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11HullShader | The created hull shader. |
CreateHullShader(ReadOnlySpan<byte>)
Create a hull shader.
Declaration
public D3D11HullShader CreateHullShader(ReadOnlySpan<byte> shaderBytecode)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled shader. |
Returns
| Type | Description |
|---|---|
| D3D11HullShader | The created hull shader. |
CreateHullShader(ReadOnlySpan<byte>, D3D11ClassLinkage?)
Create a hull shader.
Declaration
public D3D11HullShader CreateHullShader(ReadOnlySpan<byte> shaderBytecode, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled shader. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11HullShader | The created hull shader. |
CreateInputLayout(D3D11InputElementDesc[]?, byte[]?)
Create an input-layout object to describe the input-buffer data for the input-assembler stage.
Declaration
public D3D11InputLayout CreateInputLayout(D3D11InputElementDesc[]? elementDescs, byte[]? shaderBytecodeWithInputSignature)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11InputElementDesc[] | elementDescs | An array of the input-assembler stage input data types; each type is described by an element description. |
| byte[] | shaderBytecodeWithInputSignature | The compiled shader. The compiled shader code contains a input signature which is validated against the array of elements. |
Returns
| Type | Description |
|---|---|
| D3D11InputLayout | The created input-layout object. |
CreateInputLayout(ReadOnlySpan<D3D11InputElementDesc>, ReadOnlySpan<byte>)
Create an input-layout object to describe the input-buffer data for the input-assembler stage.
Declaration
public D3D11InputLayout CreateInputLayout(ReadOnlySpan<D3D11InputElementDesc> elementDescs, ReadOnlySpan<byte> shaderBytecodeWithInputSignature)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<D3D11InputElementDesc> | elementDescs | An array of the input-assembler stage input data types; each type is described by an element description. |
| ReadOnlySpan<byte> | shaderBytecodeWithInputSignature | The compiled shader. The compiled shader code contains a input signature which is validated against the array of elements. |
Returns
| Type | Description |
|---|---|
| D3D11InputLayout | The created input-layout object. |
CreatePixelShader(byte[]?)
Create a pixel shader.
Declaration
public D3D11PixelShader CreatePixelShader(byte[]? shaderBytecode)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled shader. |
Returns
| Type | Description |
|---|---|
| D3D11PixelShader | The created pixel shader. |
CreatePixelShader(byte[]?, D3D11ClassLinkage?)
Create a pixel shader.
Declaration
public D3D11PixelShader CreatePixelShader(byte[]? shaderBytecode, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled shader. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11PixelShader | The created pixel shader. |
CreatePixelShader(ReadOnlySpan<byte>)
Create a pixel shader.
Declaration
public D3D11PixelShader CreatePixelShader(ReadOnlySpan<byte> shaderBytecode)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled shader. |
Returns
| Type | Description |
|---|---|
| D3D11PixelShader | The created pixel shader. |
CreatePixelShader(ReadOnlySpan<byte>, D3D11ClassLinkage?)
Create a pixel shader.
Declaration
public D3D11PixelShader CreatePixelShader(ReadOnlySpan<byte> shaderBytecode, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled shader. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11PixelShader | The created pixel shader. |
CreatePredicate(in D3D11QueryDesc)
Creates a predicate.
Declaration
public D3D11Predicate CreatePredicate(in D3D11QueryDesc desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11QueryDesc | desc | A query description for a predicate. |
Returns
| Type | Description |
|---|---|
| D3D11Predicate | The created predicate. |
CreateQuery(in D3D11QueryDesc)
Creates an object for querying information from the GPU.
Declaration
public D3D11Query CreateQuery(in D3D11QueryDesc desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11QueryDesc | desc | A query description. |
Returns
| Type | Description |
|---|---|
| D3D11Query | The created query. |
CreateRasterizerState(in D3D11RasterizerDesc)
Create a rasterizer state object that tells the rasterizer stage how to behave.
Declaration
public D3D11RasterizerState CreateRasterizerState(in D3D11RasterizerDesc desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11RasterizerDesc | desc | A rasterizer state description. |
Returns
| Type | Description |
|---|---|
| D3D11RasterizerState | The created rasterizer state object. |
CreateRenderTargetView(D3D11Resource?)
Creates a render-target view for accessing resource data.
Declaration
public D3D11RenderTargetView CreateRenderTargetView(D3D11Resource? resource)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Resource | resource | A render target resource. |
Returns
| Type | Description |
|---|---|
| D3D11RenderTargetView | The created render target view. |
CreateRenderTargetView(D3D11Resource?, in D3D11RenderTargetViewDesc?)
Creates a render-target view for accessing resource data.
Declaration
public D3D11RenderTargetView CreateRenderTargetView(D3D11Resource? resource, in D3D11RenderTargetViewDesc? desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Resource | resource | A render target resource. |
| D3D11RenderTargetViewDesc? | desc | A render-target view description. |
Returns
| Type | Description |
|---|---|
| D3D11RenderTargetView | The created render target view. |
CreateSamplerState(in D3D11SamplerDesc)
Create a sampler-state object that encapsulates sampling information for a texture.
Declaration
public D3D11SamplerState CreateSamplerState(in D3D11SamplerDesc desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11SamplerDesc | desc | A sampler state description. |
Returns
| Type | Description |
|---|---|
| D3D11SamplerState | The created sampler-state object. |
CreateShaderResourceView(D3D11Resource?)
Create a shader resource view for accessing data in a resource.
Declaration
public D3D11ShaderResourceView CreateShaderResourceView(D3D11Resource? resource)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Resource | resource | The resource that will serve as input to a shader. |
Returns
| Type | Description |
|---|---|
| D3D11ShaderResourceView | The created shader resource view. |
CreateShaderResourceView(D3D11Resource?, in D3D11ShaderResourceViewDesc?)
Create a shader resource view for accessing data in a resource.
Declaration
public D3D11ShaderResourceView CreateShaderResourceView(D3D11Resource? resource, in D3D11ShaderResourceViewDesc? desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Resource | resource | The resource that will serve as input to a shader. |
| D3D11ShaderResourceViewDesc? | desc | A shader resource view description. |
Returns
| Type | Description |
|---|---|
| D3D11ShaderResourceView | The created shader resource view. |
CreateTexture1D(in D3D11Texture1DDesc)
Creates an array of 1D textures.
Declaration
public D3D11Texture1D CreateTexture1D(in D3D11Texture1DDesc desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture1DDesc | desc | Describes a 1D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture1D | The created texture. |
CreateTexture1D(in D3D11Texture1DDesc, D3D11SubResourceDataPtr[]?)
Creates an array of 1D textures.
Declaration
public D3D11Texture1D CreateTexture1D(in D3D11Texture1DDesc desc, D3D11SubResourceDataPtr[]? data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture1DDesc | desc | Describes a 1D texture resource. |
| D3D11SubResourceDataPtr[] | data | Describe subresources for the 1D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture1D | The created texture. |
CreateTexture1D(in D3D11Texture1DDesc, D3D11SubResourceData[]?)
Creates an array of 1D textures.
Declaration
public D3D11Texture1D CreateTexture1D(in D3D11Texture1DDesc desc, D3D11SubResourceData[]? data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture1DDesc | desc | Describes a 1D texture resource. |
| D3D11SubResourceData[] | data | Describe subresources for the 1D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture1D | The created texture. |
CreateTexture1D(in D3D11Texture1DDesc, ReadOnlySpan<D3D11SubResourceDataPtr>)
Creates an array of 1D textures.
Declaration
public D3D11Texture1D CreateTexture1D(in D3D11Texture1DDesc desc, ReadOnlySpan<D3D11SubResourceDataPtr> data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture1DDesc | desc | Describes a 1D texture resource. |
| ReadOnlySpan<D3D11SubResourceDataPtr> | data | Describe subresources for the 1D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture1D | The created texture. |
CreateTexture1D(in D3D11Texture1DDesc, ReadOnlySpan<D3D11SubResourceData>)
Creates an array of 1D textures.
Declaration
public D3D11Texture1D CreateTexture1D(in D3D11Texture1DDesc desc, ReadOnlySpan<D3D11SubResourceData> data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture1DDesc | desc | Describes a 1D texture resource. |
| ReadOnlySpan<D3D11SubResourceData> | data | Describe subresources for the 1D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture1D | The created texture. |
CreateTexture2D(in D3D11Texture2DDesc)
Create an array of 2D textures.
Declaration
public D3D11Texture2D CreateTexture2D(in D3D11Texture2DDesc desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture2DDesc | desc | Describes a 2D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture2D | The created texture. |
CreateTexture2D(in D3D11Texture2DDesc, D3D11SubResourceDataPtr[]?)
Create an array of 2D textures.
Declaration
public D3D11Texture2D CreateTexture2D(in D3D11Texture2DDesc desc, D3D11SubResourceDataPtr[]? data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture2DDesc | desc | Describes a 2D texture resource. |
| D3D11SubResourceDataPtr[] | data | Describe subresources for the 2D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture2D | The created texture. |
CreateTexture2D(in D3D11Texture2DDesc, D3D11SubResourceData[]?)
Create an array of 2D textures.
Declaration
public D3D11Texture2D CreateTexture2D(in D3D11Texture2DDesc desc, D3D11SubResourceData[]? data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture2DDesc | desc | Describes a 2D texture resource. |
| D3D11SubResourceData[] | data | Describe subresources for the 2D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture2D | The created texture. |
CreateTexture2D(in D3D11Texture2DDesc, ReadOnlySpan<D3D11SubResourceDataPtr>)
Create an array of 2D textures.
Declaration
public D3D11Texture2D CreateTexture2D(in D3D11Texture2DDesc desc, ReadOnlySpan<D3D11SubResourceDataPtr> data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture2DDesc | desc | Describes a 2D texture resource. |
| ReadOnlySpan<D3D11SubResourceDataPtr> | data | Describe subresources for the 2D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture2D | The created texture. |
CreateTexture2D(in D3D11Texture2DDesc, ReadOnlySpan<D3D11SubResourceData>)
Create an array of 2D textures.
Declaration
public D3D11Texture2D CreateTexture2D(in D3D11Texture2DDesc desc, ReadOnlySpan<D3D11SubResourceData> data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture2DDesc | desc | Describes a 2D texture resource. |
| ReadOnlySpan<D3D11SubResourceData> | data | Describe subresources for the 2D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture2D | The created texture. |
CreateTexture3D(in D3D11Texture3DDesc)
Create a single 3D texture.
Declaration
public D3D11Texture3D CreateTexture3D(in D3D11Texture3DDesc desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture3DDesc | desc | Describes a 3D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture3D | The created texture. |
CreateTexture3D(in D3D11Texture3DDesc, D3D11SubResourceDataPtr[]?)
Create a single 3D texture.
Declaration
public D3D11Texture3D CreateTexture3D(in D3D11Texture3DDesc desc, D3D11SubResourceDataPtr[]? data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture3DDesc | desc | Describes a 3D texture resource. |
| D3D11SubResourceDataPtr[] | data | Describe subresources for the 3D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture3D | The created texture. |
CreateTexture3D(in D3D11Texture3DDesc, D3D11SubResourceData[]?)
Create a single 3D texture.
Declaration
public D3D11Texture3D CreateTexture3D(in D3D11Texture3DDesc desc, D3D11SubResourceData[]? data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture3DDesc | desc | Describes a 3D texture resource. |
| D3D11SubResourceData[] | data | Describe subresources for the 3D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture3D | The created texture. |
CreateTexture3D(in D3D11Texture3DDesc, ReadOnlySpan<D3D11SubResourceDataPtr>)
Create a single 3D texture.
Declaration
public D3D11Texture3D CreateTexture3D(in D3D11Texture3DDesc desc, ReadOnlySpan<D3D11SubResourceDataPtr> data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture3DDesc | desc | Describes a 3D texture resource. |
| ReadOnlySpan<D3D11SubResourceDataPtr> | data | Describe subresources for the 3D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture3D | The created texture. |
CreateTexture3D(in D3D11Texture3DDesc, ReadOnlySpan<D3D11SubResourceData>)
Create a single 3D texture.
Declaration
public D3D11Texture3D CreateTexture3D(in D3D11Texture3DDesc desc, ReadOnlySpan<D3D11SubResourceData> data)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Texture3DDesc | desc | Describes a 3D texture resource. |
| ReadOnlySpan<D3D11SubResourceData> | data | Describe subresources for the 3D texture resource. |
Returns
| Type | Description |
|---|---|
| D3D11Texture3D | The created texture. |
CreateUnorderedAccessView(D3D11Resource?)
Creates a view for accessing an unordered access resource.
Declaration
public D3D11UnorderedAccessView CreateUnorderedAccessView(D3D11Resource? resource)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Resource | resource | A resources that will serve as an input to a shader. |
Returns
| Type | Description |
|---|---|
| D3D11UnorderedAccessView | The created unordered-access view. |
CreateUnorderedAccessView(D3D11Resource?, in D3D11UnorderedAccessViewDesc?)
Creates a view for accessing an unordered access resource.
Declaration
public D3D11UnorderedAccessView CreateUnorderedAccessView(D3D11Resource? resource, in D3D11UnorderedAccessViewDesc? desc)
Parameters
| Type | Name | Description |
|---|---|---|
| D3D11Resource | resource | A resources that will serve as an input to a shader. |
| D3D11UnorderedAccessViewDesc? | desc | A shader resource view description. |
Returns
| Type | Description |
|---|---|
| D3D11UnorderedAccessView | The created unordered-access view. |
CreateVertexShader(byte[]?)
Create a vertex shader object from a compiled shader.
Declaration
public D3D11VertexShader CreateVertexShader(byte[]? shaderBytecode)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled shader. |
Returns
| Type | Description |
|---|---|
| D3D11VertexShader | The created vertex shader. |
CreateVertexShader(byte[]?, D3D11ClassLinkage?)
Create a vertex shader object from a compiled shader.
Declaration
public D3D11VertexShader CreateVertexShader(byte[]? shaderBytecode, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | shaderBytecode | The compiled shader. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11VertexShader | The created vertex shader. |
CreateVertexShader(ReadOnlySpan<byte>)
Create a vertex shader object from a compiled shader.
Declaration
public D3D11VertexShader CreateVertexShader(ReadOnlySpan<byte> shaderBytecode)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled shader. |
Returns
| Type | Description |
|---|---|
| D3D11VertexShader | The created vertex shader. |
CreateVertexShader(ReadOnlySpan<byte>, D3D11ClassLinkage?)
Create a vertex shader object from a compiled shader.
Declaration
public D3D11VertexShader CreateVertexShader(ReadOnlySpan<byte> shaderBytecode, D3D11ClassLinkage? classLinkage)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | shaderBytecode | The compiled shader. |
| D3D11ClassLinkage | classLinkage | A class linkage interface. |
Returns
| Type | Description |
|---|---|
| D3D11VertexShader | The created vertex shader. |
GetDebugName()
Gets a unique name to objects in order to assist the developer during debugging.
Declaration
public string GetDebugName()
Returns
| Type | Description |
|---|---|
| string | The friendly name. |
GetDebugNameCharCount()
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public int GetDebugNameCharCount()
Returns
| Type | Description |
|---|---|
| int | The count. |
GetDebugNameChars(Span<char>)
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public int GetDebugNameChars(Span<char> text)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<char> | text | A char buffer. |
Returns
| Type | Description |
|---|---|
| int | The object's text. |
GetDeviceRemovedReason()
Get the reason why the device was removed.
Declaration
public Exception? GetDeviceRemovedReason()
Returns
| Type | Description |
|---|---|
| Exception | The removed reason exception. |
GetImmediateContext()
Gets an immediate context, which can play back command lists.
Declaration
public D3D11DeviceContext GetImmediateContext()
Returns
| Type | Description |
|---|---|
| D3D11DeviceContext | An immediate context. |
GetPrivateDataText(in Guid)
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public string GetPrivateDataText(in Guid name)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID identifying the data. |
Returns
| Type | Description |
|---|---|
| string | The object's text. |
GetPrivateDataTextCharCount(in Guid)
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public int GetPrivateDataTextCharCount(in Guid name)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID identifying the data. |
Returns
| Type | Description |
|---|---|
| int | The count. |
GetPrivateDataTextChars(in Guid, Span<char>)
Gets an application-defined data from the object that is associated with a GUID.
Declaration
public int GetPrivateDataTextChars(in Guid name, Span<char> text)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID identifying the data. |
| Span<char> | text | A char buffer. |
Returns
| Type | Description |
|---|---|
| int | The object's text. |
OpenSharedBuffer(nint)
Give a device access to a shared resource created on a different device.
Declaration
public D3D11Buffer OpenSharedBuffer(nint resourceHandle)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | resourceHandle | A resource handle. |
Returns
| Type | Description |
|---|---|
| D3D11Buffer | A pointer to the resource we are gaining access to. |
OpenSharedResource(nint, in Guid)
Give a device access to a shared resource created on a different device.
Declaration
public nint OpenSharedResource(nint resourceHandle, in Guid returnedInterface)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | resourceHandle | A resource handle. |
| Guid | returnedInterface | The globally unique identifier (GUID) for the resource interface. |
Returns
| Type | Description |
|---|---|
| nint | A pointer to the resource we are gaining access to. |
OpenSharedTexture1D(nint)
Give a device access to a shared resource created on a different device.
Declaration
public D3D11Texture1D OpenSharedTexture1D(nint resourceHandle)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | resourceHandle | A resource handle. |
Returns
| Type | Description |
|---|---|
| D3D11Texture1D | A pointer to the resource we are gaining access to. |
OpenSharedTexture2D(nint)
Give a device access to a shared resource created on a different device.
Declaration
public D3D11Texture2D OpenSharedTexture2D(nint resourceHandle)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | resourceHandle | A resource handle. |
Returns
| Type | Description |
|---|---|
| D3D11Texture2D | A pointer to the resource we are gaining access to. |
OpenSharedTexture3D(nint)
Give a device access to a shared resource created on a different device.
Declaration
public D3D11Texture3D OpenSharedTexture3D(nint resourceHandle)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | resourceHandle | A resource handle. |
Returns
| Type | Description |
|---|---|
| D3D11Texture3D | A pointer to the resource we are gaining access to. |
SetDebugName(ReadOnlySpan<char>)
Sets a unique name to objects in order to assist the developer during debugging.
Declaration
public void SetDebugName(ReadOnlySpan<char> name)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<char> | name | The friendly name. |
SetDebugName(string?)
Sets a unique name to objects in order to assist the developer during debugging.
Declaration
public void SetDebugName(string? name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The friendly name. |
SetPrivateDataText(in Guid, ReadOnlySpan<char>)
Sets an application-defined data to the object and associates that data with a GUID.
Declaration
public void SetPrivateDataText(in Guid name, ReadOnlySpan<char> text)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID that identifies the data. |
| ReadOnlySpan<char> | text | The object's text. |
SetPrivateDataText(in Guid, string?)
Sets an application-defined data to the object and associates that data with a GUID.
Declaration
public void SetPrivateDataText(in Guid name, string? text)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | name | A GUID that identifies the data. |
| string | text | The object's text. |
ThrowDeviceRemovedReason()
Throw a device removed reason exception.
Declaration
public void ThrowDeviceRemovedReason()