[]
        
(Showing Draft Content)

C1.Util.DX.Direct3D11.CommonShaderStageBase.SetShaderResources

SetShaderResources Method

SetShaderResources(int, params ShaderResourceView[])

Bind an array of shader resources to the shader stage.

Declaration
public void SetShaderResources(int startSlot, params ShaderResourceView[] shaderResourceViews)
Parameters
Type Name Description
int startSlot

Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1).

ShaderResourceView[] shaderResourceViews

Array of {{shader resource view}} interfaces to set to the device.

SetShaderResources(int, ComArray<ShaderResourceView>)

Bind an array of shader resources to the shader stage.

Declaration
public void SetShaderResources(int startSlot, ComArray<ShaderResourceView> shaderResourceViews)
Parameters
Type Name Description
int startSlot

Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1).

ComArray<ShaderResourceView> shaderResourceViews

Array of {{shader resource view}} interfaces to set to the device.

SetShaderResources(int, int, params ShaderResourceView[])

Bind an array of shader resources to the shader stage.

Declaration
public void SetShaderResources(int startSlot, int numViews, params ShaderResourceView[] shaderResourceViews)
Parameters
Type Name Description
int startSlot

Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1).

int numViews

Number of shader resources to set. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot).

ShaderResourceView[] shaderResourceViews

Array of {{shader resource view}} interfaces to set to the device.

SetShaderResources(int, int, ComArray<ShaderResourceView>)

Bind an array of shader resources to the shader stage.

Declaration
public void SetShaderResources(int startSlot, int numViews, ComArray<ShaderResourceView> shaderResourceViewsRef)
Parameters
Type Name Description
int startSlot

Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1).

int numViews

Number of shader resources to set. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot).

ComArray<ShaderResourceView> shaderResourceViewsRef

Array of {{shader resource view}} interfaces to set to the device.