mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Added documentation to image view and image create info structs
This commit is contained in:
parent
ad9f71fa02
commit
5bd3fdc11a
@ -5,22 +5,60 @@
|
|||||||
|
|
||||||
namespace dxvk {
|
namespace dxvk {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Image create info
|
||||||
|
*
|
||||||
|
* The properties of an image that are
|
||||||
|
* passed to \ref DxvkDevice::createImage
|
||||||
|
*/
|
||||||
struct DxvkImageCreateInfo {
|
struct DxvkImageCreateInfo {
|
||||||
|
/// Image dimension
|
||||||
VkImageType type;
|
VkImageType type;
|
||||||
|
|
||||||
|
/// Pixel format
|
||||||
VkFormat format;
|
VkFormat format;
|
||||||
|
|
||||||
|
/// Sample count for MSAA
|
||||||
VkSampleCountFlagBits sampleCount;
|
VkSampleCountFlagBits sampleCount;
|
||||||
|
|
||||||
|
/// Image size, in texels
|
||||||
VkExtent3D extent;
|
VkExtent3D extent;
|
||||||
|
|
||||||
|
/// Number of image array layers
|
||||||
uint32_t numLayers;
|
uint32_t numLayers;
|
||||||
|
|
||||||
|
/// Number of mip levels
|
||||||
uint32_t mipLevels;
|
uint32_t mipLevels;
|
||||||
|
|
||||||
|
/// Image usage flags
|
||||||
VkImageUsageFlags usage;
|
VkImageUsageFlags usage;
|
||||||
|
|
||||||
|
/// Pipeline stages that can access
|
||||||
|
/// the contents of the image
|
||||||
VkPipelineStageFlags stages;
|
VkPipelineStageFlags stages;
|
||||||
|
|
||||||
|
/// Allowed access pattern
|
||||||
VkAccessFlags access;
|
VkAccessFlags access;
|
||||||
|
|
||||||
|
/// Image tiling mode
|
||||||
VkImageTiling tiling;
|
VkImageTiling tiling;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Image create info
|
||||||
|
*
|
||||||
|
* The properties of an image view that are
|
||||||
|
* passed to \ref DxvkDevice::createImageView
|
||||||
|
*/
|
||||||
struct DxvkImageViewCreateInfo {
|
struct DxvkImageViewCreateInfo {
|
||||||
|
/// Image view dimension
|
||||||
VkImageViewType type;
|
VkImageViewType type;
|
||||||
|
|
||||||
|
/// Pixel format
|
||||||
VkFormat format;
|
VkFormat format;
|
||||||
|
|
||||||
|
/// Subresources to use in the view
|
||||||
VkImageAspectFlags aspect;
|
VkImageAspectFlags aspect;
|
||||||
uint32_t minLevel;
|
uint32_t minLevel;
|
||||||
uint32_t numLevels;
|
uint32_t numLevels;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user