Lines Matching defs:const
54 void* allocateSystemMem (const VkAllocationCallbacks* pAllocator, VkSystemAllocationScope scope)
62 void freeSystemMem (const VkAllocationCallbacks* pAllocator, void* mem)
68 Handle allocateHandle (Parent parent, const CreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator)
93 Handle allocateHandle (const CreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator)
118 Handle allocateHandle (Parent parent, const VkAllocationCallbacks* pAllocator)
143 void freeHandle (Handle handle, const VkAllocationCallbacks* pAllocator)
157 void allocateNonDispHandleArray (Parent parent, VkPipelineCache pipelineCache, uint32_t createInfoCount, const CreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, Handle* pHandles)
161 Object* const obj = allocateHandle<Object, Object*>(parent, &pCreateInfos[i], pAllocator);
167 Handle allocateNonDispHandle (Parent parent, const CreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator)
169 Object* const obj = allocateHandle<Object, Object*>(parent, pCreateInfo, pAllocator);
174 Handle allocateNonDispHandle (Parent parent, const CreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator)
180 Handle allocateNonDispHandle (Parent parent, const VkAllocationCallbacks* pAllocator)
182 Object* const obj = allocateHandle<Object, Object*>(parent, pAllocator);
187 void freeNonDispHandle (Handle handle, const VkAllocationCallbacks* pAllocator)
199 } catch (const std::bad_alloc&) { \
212 NAME (VkDevice, const Vk##NAME##CreateInfo*) {} \
218 NAME##POSTFIX (DEVICE_OR_INSTANCE, const Vk##NAME##CreateInfo##POSTFIX*) {} \
260 Instance (const VkInstanceCreateInfo* instanceInfo);
263 PFN_vkVoidFunction getProcAddr (const char* name) const { return (PFN_vkVoidFunction)m_functions.getFunction(name); }
266 const tcu::StaticFunctionLibrary m_functions;
273 SurfaceKHR (VkInstance, const VkXlibSurfaceCreateInfoKHR*) {}
274 SurfaceKHR (VkInstance, const VkXcbSurfaceCreateInfoKHR*) {}
275 SurfaceKHR (VkInstance, const VkWaylandSurfaceCreateInfoKHR*) {}
276 SurfaceKHR (VkInstance, const VkAndroidSurfaceCreateInfoKHR*) {}
277 SurfaceKHR (VkInstance, const VkWin32SurfaceCreateInfoKHR*) {}
278 SurfaceKHR (VkInstance, const VkViSurfaceCreateInfoNN*) {}
279 SurfaceKHR (VkInstance, const VkIOSSurfaceCreateInfoMVK*) {}
280 SurfaceKHR (VkInstance, const VkMacOSSurfaceCreateInfoMVK*) {}
281 SurfaceKHR (VkInstance, const VkImagePipeSurfaceCreateInfoFUCHSIA*) {}
282 SurfaceKHR (VkInstance, const VkStreamDescriptorSurfaceCreateInfoGGP*) {}
283 SurfaceKHR (VkInstance, const VkMetalSurfaceCreateInfoEXT*) {}
284 SurfaceKHR (VkInstance, const VkSurfaceCreateInfoOHOS*) {}
285 SurfaceKHR (VkInstance, const VkScreenSurfaceCreateInfoQNX*) {}
287 SurfaceKHR (VkInstance, const VkDisplaySurfaceCreateInfoKHR*) {}
288 SurfaceKHR (VkInstance, const VkHeadlessSurfaceCreateInfoEXT*) {}
295 DisplayModeKHR (VkDisplayKHR, const VkDisplayModeCreateInfoKHR*) {}
302 Device (VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* deviceInfo);
305 PFN_vkVoidFunction getProcAddr (const char* name) const { return (PFN_vkVoidFunction)m_functions.getFunction(name); }
308 const tcu::StaticFunctionLibrary m_functions;
314 Pipeline (VkDevice, const VkGraphicsPipelineCreateInfo*) {}
315 Pipeline (VkDevice, const VkComputePipelineCreateInfo*) {}
317 Pipeline (VkDevice, const VkRayTracingPipelineCreateInfoNV*) {}
318 Pipeline (VkDevice, const VkRayTracingPipelineCreateInfoKHR*) {}
319 Pipeline (VkDevice, const VkExecutionGraphPipelineCreateInfoAMDX*) {}
326 RenderPass (VkDevice, const VkRenderPassCreateInfo*) {}
327 RenderPass (VkDevice, const VkRenderPassCreateInfo2*) {}
333 Buffer (VkDevice, const VkBufferCreateInfo* pCreateInfo)
338 VkDeviceSize getSize (void) const { return m_size; }
341 const VkDeviceSize m_size;
344 VkExternalMemoryHandleTypeFlags getExternalTypesHandle (const VkImageCreateInfo* pCreateInfo)
346 const VkExternalMemoryImageCreateInfo* const externalInfo = findStructure<VkExternalMemoryImageCreateInfo> (pCreateInfo->pNext);
354 Image (VkDevice, const VkImageCreateInfo* pCreateInfo)
366 VkImageType getImageType (void) const { return m_imageType; }
367 VkFormat getFormat (void) const { return m_format; }
368 VkExtent3D getExtent (void) const { return m_extent; }
369 deUint32 getArrayLayers (void) const { return m_arrayLayers; }
370 VkSampleCountFlagBits getSamples (void) const { return m_samples; }
371 VkImageUsageFlags getUsage (void) const { return m_usage; }
372 VkImageCreateFlags getFlags (void) const { return m_flags; }
373 VkExternalMemoryHandleTypeFlags getExternalHandleTypes (void) const { return m_externalHandleTypes; }
376 const VkImageType m_imageType;
377 const VkFormat m_format;
378 const VkExtent3D m_extent;
379 const deUint32 m_arrayLayers;
380 const VkSampleCountFlagBits m_samples;
381 const VkImageUsageFlags m_usage;
382 const VkImageCreateFlags m_flags;
383 const VkExternalMemoryHandleTypeFlags m_externalHandleTypes;
386 void* allocateHeap (const VkMemoryAllocateInfo* pAllocInfo)
392 void* const heapPtr = deMalloc((size_t)pAllocInfo->allocationSize);
417 PrivateDeviceMemory (VkDevice, const VkMemoryAllocateInfo* pAllocInfo)
434 void* const m_memory;
440 AHardwareBuffer* findOrCreateHwBuffer (const VkMemoryAllocateInfo* pAllocInfo)
442 const VkExportMemoryAllocateInfo* const exportInfo = findStructure<VkExportMemoryAllocateInfo>(pAllocInfo->pNext);
443 const VkImportAndroidHardwareBufferInfoANDROID* const importInfo = findStructure<VkImportAndroidHardwareBufferInfoANDROID>(pAllocInfo->pNext);
444 const VkMemoryDedicatedAllocateInfo* const dedicatedInfo = findStructure<VkMemoryDedicatedAllocateInfo>(pAllocInfo->pNext);
445 const Image* const image = dedicatedInfo && !!dedicatedInfo->image ? reinterpret_cast<const Image*>(dedicatedInfo->image.getInternal()) : DE_NULL;
518 ExternalDeviceMemoryAndroid (VkDevice, const VkMemoryAllocateInfo* pAllocInfo)
539 AHardwareBuffer* const m_hwbuffer;
562 CommandPool (VkDevice device, const VkCommandPoolCreateInfo*)
573 const VkDevice m_device;
590 CommandBuffer* const impl = new CommandBuffer(m_device, VkCommandPool(reinterpret_cast<deUintptr>(this)), level);
607 CommandBuffer* const impl = reinterpret_cast<CommandBuffer*>(buffer);
632 DescriptorPool (VkDevice device, const VkDescriptorPoolCreateInfo* pCreateInfo)
647 const VkDevice m_device;
648 const VkDescriptorPoolCreateFlags m_flags;
655 DescriptorSet* const impl = new DescriptorSet(m_device, VkDescriptorPool(reinterpret_cast<deUintptr>(this)), setLayout);
672 DescriptorSet* const impl = reinterpret_cast<DescriptorSet*>((deUintptr)set.getInternal());
703 VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL getDeviceProcAddr (VkDevice device, const char* pName)
708 VKAPI_ATTR VkResult VKAPI_CALL createGraphicsPipelines (VkDevice device, VkPipelineCache, deUint32 count, const VkGraphicsPipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines)
718 catch (const std::bad_alloc&)
734 VKAPI_ATTR VkResult VKAPI_CALL createComputePipelines (VkDevice device, VkPipelineCache, deUint32 count, const VkComputePipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines)
744 catch (const std::bad_alloc&)
762 VKAPI_ATTR VkResult VKAPI_CALL createRayTracingPipelinesNV (VkDevice device, VkPipelineCache, deUint32 count, const VkRayTracingPipelineCreateInfoKHR* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines)
772 catch (const std::bad_alloc&)
788 VKAPI_ATTR VkResult VKAPI_CALL createRayTracingPipelinesKHR (VkDevice device, VkPipelineCache, deUint32 count, const VkRayTracingPipelineCreateInfoKHR* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines)
798 catch (const std::bad_alloc&)
814 VKAPI_ATTR VkResult VKAPI_CALL createShadersEXT (VkDevice device, uint32_t createInfoCount, const VkShaderCreateInfoEXT* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkShaderEXT* pShaders)
823 catch (const std::bad_alloc&)
849 VkResult enumerateExtensions (deUint32 numExtensions, const VkExtensionProperties* extensions, deUint32* pPropertyCount, VkExtensionProperties* pProperties)
851 const deUint32 dstSize = pPropertyCount ? *pPropertyCount : 0;
868 VKAPI_ATTR VkResult VKAPI_CALL enumerateInstanceExtensionProperties (const char* pLayerName, deUint32* pPropertyCount, VkExtensionProperties* pProperties)
870 static const VkExtensionProperties s_extensions[] =
882 VKAPI_ATTR VkResult VKAPI_CALL enumerateDeviceExtensionProperties (VkPhysicalDevice physicalDevice, const char* pLayerName, deUint32* pPropertyCount, VkExtensionProperties* pProperties)
886 static const VkExtensionProperties s_extensions[] =
1124 const VkFormatFeatureFlags allFeatures = VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT
1183 const Buffer* buffer = reinterpret_cast<const Buffer*>(bufferHandle.getInternal());
1203 const tcu::CompressedTexFormat tcuFormat = mapVkCompressedFormat(format);
1204 const size_t blockSize = tcu::getBlockSize(tcuFormat);
1205 const tcu::IVec3 blockPixelSize = tcu::getBlockPixelSize(tcuFormat);
1206 const int numBlocksX = deDivRoundUp32((int)extent.width, blockPixelSize.x());
1207 const int numBlocksY = deDivRoundUp32((int)extent.height, blockPixelSize.y());
1208 const int numBlocksZ = deDivRoundUp32((int)extent.depth, blockPixelSize.z());
1220 const PlanarFormatDescription desc = getPlanarFormatDescription(format);
1227 const deUint32 elementSize = desc.planes[planeNdx].elementSizeBytes;
1238 const Image* image = reinterpret_cast<const Image*>(imageHandle.getInternal());
1251 VKAPI_ATTR VkResult VKAPI_CALL allocateMemory (VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory)
1254 const VkExportMemoryAllocateInfo* const exportInfo = findStructure<VkExportMemoryAllocateInfo>(pAllocateInfo->pNext);
1255 const VkImportAndroidHardwareBufferInfoANDROID* const importInfo = findStructure<VkImportAndroidHardwareBufferInfoANDROID>(pAllocateInfo->pNext);
1277 DeviceMemory* const memory = reinterpret_cast<DeviceMemory*>(memHandle.getInternal());
1289 DeviceMemory* const memory = reinterpret_cast<DeviceMemory*>(memHandle.getInternal());
1298 VKAPI_ATTR VkResult VKAPI_CALL getMemoryAndroidHardwareBufferANDROID (VkDevice device, const VkMemoryGetAndroidHardwareBufferInfoANDROID* pInfo, pt::AndroidHardwareBufferPtr* pBuffer)
1303 DeviceMemory* const memory = reinterpret_cast<ExternalDeviceMemoryAndroid*>(pInfo->memory.getInternal());
1304 ExternalDeviceMemoryAndroid* const androidMemory = static_cast<ExternalDeviceMemoryAndroid*>(memory);
1319 VKAPI_ATTR VkResult VKAPI_CALL allocateDescriptorSets (VkDevice, const VkDescriptorSetAllocateInfo* pAllocateInfo, VkDescriptorSet* pDescriptorSets)
1321 DescriptorPool* const poolImpl = reinterpret_cast<DescriptorPool*>((deUintptr)pAllocateInfo->descriptorPool.getInternal());
1329 catch (const std::bad_alloc&)
1348 VKAPI_ATTR void VKAPI_CALL freeDescriptorSets (VkDevice, VkDescriptorPool descriptorPool, deUint32 count, const VkDescriptorSet* pDescriptorSets)
1350 DescriptorPool* const poolImpl = reinterpret_cast<DescriptorPool*>((deUintptr)descriptorPool.getInternal());
1358 DescriptorPool* const poolImpl = reinterpret_cast<DescriptorPool*>((deUintptr)descriptorPool.getInternal());
1365 VKAPI_ATTR VkResult VKAPI_CALL allocateCommandBuffers (VkDevice device, const VkCommandBufferAllocateInfo* pAllocateInfo, VkCommandBuffer* pCommandBuffers)
1371 CommandPool* const poolImpl = reinterpret_cast<CommandPool*>((deUintptr)pAllocateInfo->commandPool.getInternal());
1380 VKAPI_ATTR void VKAPI_CALL freeCommandBuffers (VkDevice device, VkCommandPool commandPool, deUint32 commandBufferCount, const VkCommandBuffer* pCommandBuffers)
1382 CommandPool* const poolImpl = reinterpret_cast<CommandPool*>((deUintptr)commandPool.getInternal());
1391 VKAPI_ATTR VkResult VKAPI_CALL createDisplayModeKHR (VkPhysicalDevice, VkDisplayKHR display, const VkDisplayModeCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDisplayModeKHR* pMode)
1397 VKAPI_ATTR VkResult VKAPI_CALL createSharedSwapchainsKHR (VkDevice device, deUint32 swapchainCount, const VkSwapchainCreateInfoKHR* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchains)
1407 VKAPI_ATTR void VKAPI_CALL getPhysicalDeviceExternalBufferPropertiesKHR (VkPhysicalDevice physicalDevice, const VkPhysicalDeviceExternalBufferInfo* pExternalBufferInfo, VkExternalBufferProperties* pExternalBufferProperties)
1426 VKAPI_ATTR VkResult VKAPI_CALL getPhysicalDeviceImageFormatProperties2KHR (VkPhysicalDevice physicalDevice, const VkPhysicalDeviceImageFormatInfo2* pImageFormatInfo, VkImageFormatProperties2* pImageFormatProperties)
1429 const VkPhysicalDeviceExternalImageFormatInfo* const externalInfo = findStructure<VkPhysicalDeviceExternalImageFormatInfo>(pImageFormatInfo->pNext);
1430 VkExternalImageFormatProperties* const externalProperties = findStructure<VkExternalImageFormatProperties>(pImageFormatProperties->pNext);
1491 VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL getInstanceProcAddr (VkInstance instance, const char* pName);
1495 VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL getInstanceProcAddr (VkInstance instance, const char* pName)
1503 const std::string name = pName;
1518 Instance::Instance (const VkInstanceCreateInfo*)
1523 Device::Device (VkPhysicalDevice, const VkDeviceCreateInfo*)
1536 const PlatformInterface& getPlatformInterface (void) const { return m_driver; }
1537 const tcu::FunctionLibrary& getFunctionLibrary (void) const { return m_library; }
1539 const tcu::StaticFunctionLibrary m_library;
1540 const PlatformDriver m_driver;