Skip to content

Latest commit

 

History

History
101 lines (66 loc) · 3.87 KB

nc-d3d10umddi-pfnd3d11ddi_createshaderresourceview.md

File metadata and controls

101 lines (66 loc) · 3.87 KB
UID title description old-location ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos tech.root req.typenames f1_keywords topic_type api_type api_location api_name
NC:d3d10umddi.PFND3D11DDI_CREATESHADERRESOURCEVIEW
PFND3D11DDI_CREATESHADERRESOURCEVIEW (d3d10umddi.h)
The CreateShaderResourceView(D3D11) function creates a shader resource view.
display\createshaderresourceview_d3d11_.htm
05/10/2018
PFND3D11DDI_CREATESHADERRESOURCEVIEW callback function
CreateShaderResourceView, CreateShaderResourceView callback function [Display Devices], PFND3D11DDI_CREATESHADERRESOURCEVIEW, PFND3D11DDI_CREATESHADERRESOURCEVIEW callback, UserModeDisplayDriverDx11_Functions_abe7b0fb-121d-4486-af02-885ff37a4e81.xml, d3d10umddi/CreateShaderResourceView, display.createshaderresourceview_d3d11_
d3d10umddi.h
D3d10umddi.h
Desktop
CreateShaderResourceView(D3D11) is supported beginning with the Windows 7 operating system.
Windows
display
PFND3D11DDI_CREATESHADERRESOURCEVIEW
d3d10umddi/PFND3D11DDI_CREATESHADERRESOURCEVIEW
APIRef
kbSyntax
UserDefined
d3d10umddi.h
PFND3D11DDI_CREATESHADERRESOURCEVIEW

PFND3D11DDI_CREATESHADERRESOURCEVIEW callback function

-description

The CreateShaderResourceView(D3D11) function creates a shader resource view.

-parameters

-param unnamedParam1

hDevice [in]

A handle to the display device (graphics context).

-param unnamedParam2

pCreateShaderResourceView [in]

A pointer to a D3D11DDIARG_CREATESHADERRESOURCEVIEW structure that describes the parameters that the user-mode display driver uses to create a shader resource view.

-param unnamedParam3

hShaderResourceView [in]

A handle to the driver's private data for the hull shader.

-param unnamedParam4

hRTShaderResourceView [in]

A handle to the shader resource view that the driver should use when it calls back into the Direct3D runtime.

-remarks

The driver can use the pfnSetErrorCb callback function to set an error code.

The driver might run out of memory. Therefore, the driver can pass E_OUTOFMEMORY or D3DDDIERR_DEVICEREMOVED in a call to the pfnSetErrorCb function. The Direct3D runtime determines that any other errors are critical. If the driver passes any errors, which includes D3DDDIERR_DEVICEREMOVED, the Direct3D runtime determines that the handle is invalid; therefore, the runtime does not call the DestroyShaderResourceView function to destroy the handle that the hShaderResourceView parameter specifies.

-see-also

CalcPrivateShaderResourceViewSize(D3D11)

D3D11DDIARG_CREATESHADERRESOURCEVIEW

D3D11DDI_DEVICEFUNCS

DestroyShaderResourceView

pfnSetErrorCb