Resource view descriptor structure.
More...
#include <ResourceHeapFlags.h>
◆ ResourceViewDescriptor() [1/4]
| LLGL::ResourceViewDescriptor::ResourceViewDescriptor |
( |
| ) |
|
|
default |
Default constructor to initialize the resource view with a null pointer.
◆ ResourceViewDescriptor() [2/4]
| LLGL::ResourceViewDescriptor::ResourceViewDescriptor |
( |
Resource * | resource | ) |
|
|
inline |
Constructor to initialize the descriptor with a resource. The resource view will access the entire resource.
◆ ResourceViewDescriptor() [3/4]
Constructor to initialize a descriptor with a texture subresource view.
◆ ResourceViewDescriptor() [4/4]
Constructor to initialize a descriptor with a buffer subresource view.
◆ bufferView
Optional buffer view descriptor.
◆ initialCount
| std::uint32_t LLGL::ResourceViewDescriptor::initialCount = 0 |
Initial counter value for an AppendStructuredBuffer and ConsumeStructuredBuffer in HLSL.
- Note
- Only supported with: Direct3D 11, Direct3D 12.
- See also
- MiscFlags::Append
-
MiscFlags::Counter
◆ resource
| Resource* LLGL::ResourceViewDescriptor::resource = nullptr |
Pointer to the hardware resource.
- See also
- This can be null when passed to a ResourceHeap to skip over resources that are intended to be unchanged. This way a single
WriteResourceHeap invocation can be used to write a partial range of resource views.
◆ textureView
Optional texture view descriptor.
The documentation for this struct was generated from the following file: