Skip to content

Latest commit

 

History

History
80 lines (63 loc) · 2.61 KB

ns-d3d12-d3d12_buffer_srv.md

File metadata and controls

80 lines (63 loc) · 2.61 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date 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 req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:d3d12.D3D12_BUFFER_SRV
D3D12_BUFFER_SRV (d3d12.h)
Describes the elements in a buffer resource to use in a shader-resource view.
D3D12_BUFFER_SRV
D3D12_BUFFER_SRV structure
d3d12/D3D12_BUFFER_SRV
direct3d12.d3d12_buffer_srv
direct3d12\d3d12_buffer_srv.htm
direct3d12
FD5FBA65-4C70-487F-8D93-0EC5668BCE4A
12/05/2018
D3D12_BUFFER_SRV, D3D12_BUFFER_SRV structure, d3d12/D3D12_BUFFER_SRV, direct3d12.d3d12_buffer_srv
d3d12.h
Windows
Windows
D3D12_BUFFER_SRV
19H1
D3D12_BUFFER_SRV
d3d12/D3D12_BUFFER_SRV
c++
APIRef
kbSyntax
HeaderDef
D3D12.h
D3D12_BUFFER_SRV

D3D12_BUFFER_SRV structure

-description

Describes the elements in a buffer resource to use in a shader-resource view.

-struct-fields

-field FirstElement

The index of the first element to be accessed by the view.

-field NumElements

The number of elements in the resource.

-field StructureByteStride

The size of each element in the buffer structure (in bytes) when the buffer represents a structured buffer. The size must match the struct size declared in shaders that access the view.

-field Flags

A D3D12_BUFFER_SRV_FLAGS-typed value that identifies view options for the buffer. Currently, the only option is to identify a raw view of the buffer. For more info about raw viewing of buffers, see Raw Views of Buffers.

-remarks

This structure is used by D3D12_SHADER_RESOURCE_VIEW_DESC to create a view of a buffer.

If the value of StructureByteStride is not 0, then a view of a structured buffer is created, and then the D3D12_SHADER_RESOURCE_VIEW_DESC::Format field must be DXGI_FORMAT_UNKNOWN. If StructureByteStride is 0, then a typed view of a buffer is created, and then a format must be supplied. The specified format for the typed view must be supported by the hardware.

-see-also

Core Structures