MXVK Vulkan Framework 0.33.1
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
mxvk_shader_module.cpp File Reference
#include "mxvk/mxvk_shader_module.hpp"
#include "mxvk/mxvk_exception.hpp"
#include <fstream>
#include <iterator>
#include <span>

Go to the source code of this file.

Namespaces

namespace  mxvk
 Utilities for loading and saving PNG images.
namespace  mxvk::anonymous_namespace{mxvk_shader_module.cpp}

Functions

VkShaderModule mxvk::create_shader_module (VkDevice device, const std::vector< char > &spv_bytes)
 Create a shader module from SPIR-V bytecode.
ShaderModuleInfo mxvk::inspect_spirv (const std::vector< char > &spv_bytes)
 Inspect a SPIR-V entry point and compute local workgroup size.
std::vector< char > mxvk::load_spv (const std::string &path)
 Load a SPIR-V file from disk.

Variables

constexpr uint32_t mxvk::anonymous_namespace{mxvk_shader_module.cpp}::DECORATION_BINDING = 33U
constexpr uint32_t mxvk::anonymous_namespace{mxvk_shader_module.cpp}::DECORATION_DESCRIPTOR_SET = 34U
constexpr uint32_t mxvk::anonymous_namespace{mxvk_shader_module.cpp}::EXECUTION_MODE_LOCAL_SIZE = 17U
constexpr uint32_t mxvk::anonymous_namespace{mxvk_shader_module.cpp}::EXECUTION_MODEL_COMPUTE = 5U
constexpr uint32_t mxvk::anonymous_namespace{mxvk_shader_module.cpp}::EXECUTION_MODEL_FRAGMENT = 4U
constexpr uint32_t mxvk::anonymous_namespace{mxvk_shader_module.cpp}::EXECUTION_MODEL_VERTEX = 0U
constexpr uint16_t mxvk::anonymous_namespace{mxvk_shader_module.cpp}::OP_DECORATE = 71U
constexpr uint16_t mxvk::anonymous_namespace{mxvk_shader_module.cpp}::OP_ENTRY_POINT = 15U
constexpr uint16_t mxvk::anonymous_namespace{mxvk_shader_module.cpp}::OP_EXECUTION_MODE = 16U
constexpr uint32_t mxvk::anonymous_namespace{mxvk_shader_module.cpp}::SPIRV_MAGIC = 0x07230203U