ShaderUtilsVk.h#
↰ Parent directory (Vulkan
)
Contains useful low level utils for shaders (loading, compiling) into low level Api object wrappers.
Includes#
PVRCore/stream/Stream.h
PVRUtils/Vulkan/HelperVk.h
PVRVk/DeviceVk.h
Included By#
Namespaces#
Functions#
Source Code#
#pragma once
#include "PVRCore/stream/Stream.h"
#include "PVRVk/DeviceVk.h"
#include "PVRUtils/Vulkan/HelperVk.h"
namespace pvr {
namespace utils {
pvrvk::ShaderModule createShaderModule(pvrvk::Device& device, std::string& shaderSource, pvrvk::ShaderStageFlags shaderStageFlags,
pvrvk::ShaderModuleCreateFlags flags = pvrvk::ShaderModuleCreateFlags::e_NONE, const char* const* defines = nullptr, uint32_t numDefines = 0);
pvrvk::ShaderModule createShaderModule(pvrvk::Device& device, const Stream& shaderSource, pvrvk::ShaderStageFlags shaderStageFlags,
pvrvk::ShaderModuleCreateFlags flags = pvrvk::ShaderModuleCreateFlags::e_NONE, const char* const* defines = nullptr, uint32_t numDefines = 0);
} // namespace utils
} // namespace pvr