@@ -52,9 +52,9 @@ namespace amf
52
52
53
53
typedef struct AMFVulkanSync
54
54
{
55
- amf_size cbSizeof; // sizeof(AMFVulkanSemaphore )
55
+ amf_size cbSizeof; // sizeof(AMFVulkanSync )
56
56
void * pNext; // reserved for extensions
57
- VkSemaphore hSemaphore;
57
+ VkSemaphore hSemaphore; // VkSemaphore; can be nullptr
58
58
bool bSubmitted; // if true - wait for hSemaphore. re-submit hSemaphore if not synced by other ways and set to true
59
59
VkFence hFence; // To sync on CPU; can be nullptr. Submitted in vkQueueSubmit. If waited for hFence, null it, do not delete or reset.
60
60
} AMFVulkanSync;
@@ -78,12 +78,12 @@ namespace amf
78
78
amf_size cbSizeof; // sizeof(AMFVulkanSurface)
79
79
void * pNext; // reserved for extensions
80
80
// surface properties
81
- VkImage hImage;
82
- VkDeviceMemory hMemory;
81
+ VkImage hImage; // vulkan native image for which the surface is created
82
+ VkDeviceMemory hMemory; // memory for hImage, can be nullptr
83
83
amf_int64 iSize; // memory size
84
84
amf_uint32 eFormat; // VkFormat
85
- amf_int32 iWidth;
86
- amf_int32 iHeight;
85
+ amf_int32 iWidth; // image width
86
+ amf_int32 iHeight; // image height
87
87
amf_uint32 eCurrentLayout; // VkImageLayout
88
88
amf_uint32 eUsage; // AMF_SURFACE_USAGE
89
89
amf_uint32 eAccess; // AMF_MEMORY_CPU_ACCESS
@@ -92,7 +92,7 @@ namespace amf
92
92
93
93
typedef struct AMFVulkanView
94
94
{
95
- amf_size cbSizeof; // sizeof(AMFVulkanSurface )
95
+ amf_size cbSizeof; // sizeof(AMFVulkanView )
96
96
void * pNext; // reserved for extensions
97
97
// surface properties
98
98
AMFVulkanSurface *pSurface;
0 commit comments