Vulkan-Hpp
|
Classes | |
struct | LUID |
class | CameraManipulator |
struct | WindowData |
struct | BufferData |
struct | ImageData |
struct | DepthBufferData |
struct | SurfaceData |
struct | SwapChainData |
class | CheckerboardImageGenerator |
class | MonochromeImageGenerator |
class | PixelsImageGenerator |
struct | TextureData |
struct | UUID |
Functions | |
std::ostream & | operator<< (std::ostream &os, LUID const &uuid) |
template<typename T > | |
bool | isZero (const T &_a) |
template<typename T > | |
bool | isOne (const T &_a) |
float | sign (float s) |
glm::mat4x4 | createModelViewProjectionClipMatrix (vk::Extent2D const &extent) |
EShLanguage | translateShaderStage (vk::ShaderStageFlagBits stage) |
bool | GLSLtoSPV (const vk::ShaderStageFlagBits shaderType, std::string const &glslShader, std::vector< unsigned int > &spvShader) |
vk::ShaderModule | createShaderModule (vk::Device const &device, vk::ShaderStageFlagBits shaderStage, std::string const &shaderText) |
vk::DeviceMemory | allocateDeviceMemory (vk::Device const &device, vk::PhysicalDeviceMemoryProperties const &memoryProperties, vk::MemoryRequirements const &memoryRequirements, vk::MemoryPropertyFlags memoryPropertyFlags) |
bool | contains (std::vector< vk::ExtensionProperties > const &extensionProperties, std::string const &extensionName) |
vk::DescriptorPool | createDescriptorPool (vk::Device const &device, std::vector< vk::DescriptorPoolSize > const &poolSizes) |
vk::DescriptorSetLayout | createDescriptorSetLayout (vk::Device const &device, std::vector< std::tuple< vk::DescriptorType, uint32_t, vk::ShaderStageFlags >> const &bindingData, vk::DescriptorSetLayoutCreateFlags flags) |
vk::Device | createDevice (vk::PhysicalDevice const &physicalDevice, uint32_t queueFamilyIndex, std::vector< std::string > const &extensions, vk::PhysicalDeviceFeatures const *physicalDeviceFeatures, void const *pNext) |
std::vector< vk::Framebuffer > | createFramebuffers (vk::Device const &device, vk::RenderPass &renderPass, std::vector< vk::ImageView > const &imageViews, vk::ImageView const &depthImageView, vk::Extent2D const &extent) |
vk::Pipeline | createGraphicsPipeline (vk::Device const &device, vk::PipelineCache const &pipelineCache, std::pair< vk::ShaderModule, vk::SpecializationInfo const * > const &vertexShaderData, std::pair< vk::ShaderModule, vk::SpecializationInfo const * > const &fragmentShaderData, uint32_t vertexStride, std::vector< std::pair< vk::Format, uint32_t >> const &vertexInputAttributeFormatOffset, vk::FrontFace frontFace, bool depthBuffered, vk::PipelineLayout const &pipelineLayout, vk::RenderPass const &renderPass) |
std::vector< char const * > | gatherExtensions (std::vector< std::string > const &extensions, std::vector< vk::ExtensionProperties > const &extensionProperties) |
std::vector< char const * > | gatherLayers (std::vector< std::string > const &layers, std::vector< vk::LayerProperties > const &layerProperties) |
vk::Instance | createInstance (std::string const &appName, std::string const &engineName, std::vector< std::string > const &layers, std::vector< std::string > const &extensions, uint32_t apiVersion) |
vk::RenderPass | createRenderPass (vk::Device const &device, vk::Format colorFormat, vk::Format depthFormat, vk::AttachmentLoadOp loadOp, vk::ImageLayout colorFinalLayout) |
VKAPI_ATTR VkBool32 VKAPI_CALL | debugUtilsMessengerCallback (VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, VkDebugUtilsMessageTypeFlagsEXT messageTypes, VkDebugUtilsMessengerCallbackDataEXT const *pCallbackData, void *) |
uint32_t | findGraphicsQueueFamilyIndex (std::vector< vk::QueueFamilyProperties > const &queueFamilyProperties) |
std::pair< uint32_t, uint32_t > | findGraphicsAndPresentQueueFamilyIndex (vk::PhysicalDevice physicalDevice, vk::SurfaceKHR const &surface) |
uint32_t | findMemoryType (vk::PhysicalDeviceMemoryProperties const &memoryProperties, uint32_t typeBits, vk::MemoryPropertyFlags requirementsMask) |
std::vector< std::string > | getDeviceExtensions () |
std::vector< std::string > | getInstanceExtensions () |
vk::Format | pickDepthFormat (vk::PhysicalDevice const &physicalDevice) |
vk::PresentModeKHR | pickPresentMode (std::vector< vk::PresentModeKHR > const &presentModes) |
vk::SurfaceFormatKHR | pickSurfaceFormat (std::vector< vk::SurfaceFormatKHR > const &formats) |
void | setImageLayout (vk::CommandBuffer const &commandBuffer, vk::Image image, vk::Format format, vk::ImageLayout oldImageLayout, vk::ImageLayout newImageLayout) |
void | submitAndWait (vk::Device const &device, vk::Queue const &queue, vk::CommandBuffer const &commandBuffer) |
void | updateDescriptorSets (vk::Device const &device, vk::DescriptorSet const &descriptorSet, std::vector< std::tuple< vk::DescriptorType, vk::Buffer const &, vk::DeviceSize, vk::BufferView const & >> const &bufferData, vk::su::TextureData const &textureData, uint32_t bindingOffset) |
void | updateDescriptorSets (vk::Device const &device, vk::DescriptorSet const &descriptorSet, std::vector< std::tuple< vk::DescriptorType, vk::Buffer const &, vk::DeviceSize, vk::BufferView const & >> const &bufferData, std::vector< vk::su::TextureData > const &textureData, uint32_t bindingOffset) |
WindowData | createWindow (std::string const &windowName, vk::Extent2D const &extent) |
vk::DebugUtilsMessengerCreateInfoEXT | makeDebugUtilsMessengerCreateInfoEXT () |
vk::StructureChain< vk::InstanceCreateInfo, vk::DebugUtilsMessengerCreateInfoEXT > | makeInstanceCreateInfoChain (vk::ApplicationInfo const &applicationInfo, std::vector< char const * > const &layers, std::vector< char const * > const &extensions) |
template<typename Func > | |
void | oneTimeSubmit (vk::Device const &device, vk::CommandPool const &commandPool, vk::Queue const &queue, Func const &func) |
template<class T > | |
void | copyToDevice (vk::Device const &device, vk::DeviceMemory const &deviceMemory, T const *pData, size_t count, vk::DeviceSize stride=sizeof(T)) |
template<class T > | |
void | copyToDevice (vk::Device const &device, vk::DeviceMemory const &deviceMemory, T const &data) |
template<class T > | |
constexpr VULKAN_HPP_INLINE const T & | clamp (const T &v, const T &lo, const T &hi) |
template<typename TargetType , typename SourceType > | |
VULKAN_HPP_INLINE TargetType | checked_cast (SourceType value) |
Variables | |
const float | trackballSize = 0.8f |
const uint64_t | FenceTimeout = 100000000 |
vk::DeviceMemory vk::su::allocateDeviceMemory | ( | vk::Device const & | device, |
vk::PhysicalDeviceMemoryProperties const & | memoryProperties, | ||
vk::MemoryRequirements const & | memoryRequirements, | ||
vk::MemoryPropertyFlags | memoryPropertyFlags | ||
) |
VULKAN_HPP_INLINE TargetType vk::su::checked_cast | ( | SourceType | value | ) |
|
constexpr |
bool vk::su::contains | ( | std::vector< vk::ExtensionProperties > const & | extensionProperties, |
std::string const & | extensionName | ||
) |
void vk::su::copyToDevice | ( | vk::Device const & | device, |
vk::DeviceMemory const & | deviceMemory, | ||
T const & | data | ||
) |
void vk::su::copyToDevice | ( | vk::Device const & | device, |
vk::DeviceMemory const & | deviceMemory, | ||
T const * | pData, | ||
size_t | count, | ||
vk::DeviceSize | stride = sizeof( T ) |
||
) |
vk::DescriptorPool vk::su::createDescriptorPool | ( | vk::Device const & | device, |
std::vector< vk::DescriptorPoolSize > const & | poolSizes | ||
) |
vk::DescriptorSetLayout vk::su::createDescriptorSetLayout | ( | vk::Device const & | device, |
std::vector< std::tuple< vk::DescriptorType, uint32_t, vk::ShaderStageFlags >> const & | bindingData, | ||
vk::DescriptorSetLayoutCreateFlags | flags | ||
) |
vk::Device vk::su::createDevice | ( | vk::PhysicalDevice const & | physicalDevice, |
uint32_t | queueFamilyIndex, | ||
std::vector< std::string > const & | extensions, | ||
vk::PhysicalDeviceFeatures const * | physicalDeviceFeatures, | ||
void const * | pNext | ||
) |
std::vector<vk::Framebuffer> vk::su::createFramebuffers | ( | vk::Device const & | device, |
vk::RenderPass & | renderPass, | ||
std::vector< vk::ImageView > const & | imageViews, | ||
vk::ImageView const & | depthImageView, | ||
vk::Extent2D const & | extent | ||
) |
vk::Pipeline vk::su::createGraphicsPipeline | ( | vk::Device const & | device, |
vk::PipelineCache const & | pipelineCache, | ||
std::pair< vk::ShaderModule, vk::SpecializationInfo const * > const & | vertexShaderData, | ||
std::pair< vk::ShaderModule, vk::SpecializationInfo const * > const & | fragmentShaderData, | ||
uint32_t | vertexStride, | ||
std::vector< std::pair< vk::Format, uint32_t >> const & | vertexInputAttributeFormatOffset, | ||
vk::FrontFace | frontFace, | ||
bool | depthBuffered, | ||
vk::PipelineLayout const & | pipelineLayout, | ||
vk::RenderPass const & | renderPass | ||
) |
vk::Instance vk::su::createInstance | ( | std::string const & | appName, |
std::string const & | engineName, | ||
std::vector< std::string > const & | layers, | ||
std::vector< std::string > const & | extensions, | ||
uint32_t | apiVersion | ||
) |
glm::mat4x4 vk::su::createModelViewProjectionClipMatrix | ( | vk::Extent2D const & | extent | ) |
vk::RenderPass vk::su::createRenderPass | ( | vk::Device const & | device, |
vk::Format | colorFormat, | ||
vk::Format | depthFormat, | ||
vk::AttachmentLoadOp | loadOp, | ||
vk::ImageLayout | colorFinalLayout | ||
) |
vk::ShaderModule vk::su::createShaderModule | ( | vk::Device const & | device, |
vk::ShaderStageFlagBits | shaderStage, | ||
std::string const & | shaderText | ||
) |
Definition at line 88 of file shaders.cpp.
WindowData vk::su::createWindow | ( | std::string const & | windowName, |
vk::Extent2D const & | extent | ||
) |
VKAPI_ATTR VkBool32 VKAPI_CALL vk::su::debugUtilsMessengerCallback | ( | VkDebugUtilsMessageSeverityFlagBitsEXT | messageSeverity, |
VkDebugUtilsMessageTypeFlagsEXT | messageTypes, | ||
VkDebugUtilsMessengerCallbackDataEXT const * | pCallbackData, | ||
void * | |||
) |
std::pair< uint32_t, uint32_t > vk::su::findGraphicsAndPresentQueueFamilyIndex | ( | vk::PhysicalDevice | physicalDevice, |
vk::SurfaceKHR const & | surface | ||
) |
uint32_t vk::su::findGraphicsQueueFamilyIndex | ( | std::vector< vk::QueueFamilyProperties > const & | queueFamilyProperties | ) |
uint32_t vk::su::findMemoryType | ( | vk::PhysicalDeviceMemoryProperties const & | memoryProperties, |
uint32_t | typeBits, | ||
vk::MemoryPropertyFlags | requirementsMask | ||
) |
std::vector<char const *> vk::su::gatherExtensions | ( | std::vector< std::string > const & | extensions, |
std::vector< vk::ExtensionProperties > const & | extensionProperties | ||
) |
std::vector<char const *> vk::su::gatherLayers | ( | std::vector< std::string > const & | layers, |
std::vector< vk::LayerProperties > const & | layerProperties | ||
) |
std::vector< std::string > vk::su::getDeviceExtensions | ( | ) |
std::vector< std::string > vk::su::getInstanceExtensions | ( | ) |
bool vk::su::GLSLtoSPV | ( | const vk::ShaderStageFlagBits | shaderType, |
std::string const & | glslShader, | ||
std::vector< unsigned int > & | spvShader | ||
) |
Definition at line 49 of file shaders.cpp.
bool vk::su::isOne | ( | const T & | _a | ) |
Definition at line 49 of file CameraManipulator.cpp.
bool vk::su::isZero | ( | const T & | _a | ) |
Definition at line 44 of file CameraManipulator.cpp.
vk::DebugUtilsMessengerCreateInfoEXT vk::su::makeDebugUtilsMessengerCreateInfoEXT | ( | ) |
vk::StructureChain< vk::InstanceCreateInfo, vk::DebugUtilsMessengerCreateInfoEXT > vk::su::makeInstanceCreateInfoChain | ( | vk::ApplicationInfo const & | applicationInfo, |
std::vector< char const * > const & | layers, | ||
std::vector< char const * > const & | extensions | ||
) |
void vk::su::oneTimeSubmit | ( | vk::Device const & | device, |
vk::CommandPool const & | commandPool, | ||
vk::Queue const & | queue, | ||
Func const & | func | ||
) |
std::ostream& vk::su::operator<< | ( | std::ostream & | os, |
LUID const & | uuid | ||
) |
Definition at line 81 of file PhysicalDeviceProperties.cpp.
vk::Format vk::su::pickDepthFormat | ( | vk::PhysicalDevice const & | physicalDevice | ) |
vk::PresentModeKHR vk::su::pickPresentMode | ( | std::vector< vk::PresentModeKHR > const & | presentModes | ) |
vk::SurfaceFormatKHR vk::su::pickSurfaceFormat | ( | std::vector< vk::SurfaceFormatKHR > const & | formats | ) |
void vk::su::setImageLayout | ( | vk::CommandBuffer const & | commandBuffer, |
vk::Image | image, | ||
vk::Format | format, | ||
vk::ImageLayout | oldImageLayout, | ||
vk::ImageLayout | newImageLayout | ||
) |
|
inline |
Definition at line 53 of file CameraManipulator.cpp.
void vk::su::submitAndWait | ( | vk::Device const & | device, |
vk::Queue const & | queue, | ||
vk::CommandBuffer const & | commandBuffer | ||
) |
EShLanguage vk::su::translateShaderStage | ( | vk::ShaderStageFlagBits | stage | ) |
Definition at line 27 of file shaders.cpp.
void vk::su::updateDescriptorSets | ( | vk::Device const & | device, |
vk::DescriptorSet const & | descriptorSet, | ||
std::vector< std::tuple< vk::DescriptorType, vk::Buffer const &, vk::DeviceSize, vk::BufferView const & >> const & | bufferData, | ||
std::vector< vk::su::TextureData > const & | textureData, | ||
uint32_t | bindingOffset | ||
) |
void vk::su::updateDescriptorSets | ( | vk::Device const & | device, |
vk::DescriptorSet const & | descriptorSet, | ||
std::vector< std::tuple< vk::DescriptorType, vk::Buffer const &, vk::DeviceSize, vk::BufferView const & >> const & | bufferData, | ||
vk::su::TextureData const & | textureData, | ||
uint32_t | bindingOffset | ||
) |
const float vk::su::trackballSize = 0.8f |
Definition at line 38 of file CameraManipulator.cpp.