24 lines
896 B
C++
24 lines
896 B
C++
// =============================================
|
|
// Aster: pipeline_utils.h
|
|
// Copyright (c) 2020-2024 Anish Bhobe
|
|
// =============================================
|
|
|
|
#pragma once
|
|
|
|
#include "aster/aster.h"
|
|
|
|
struct GpuResourceManager;
|
|
struct Swapchain;
|
|
struct Device;
|
|
struct Pipeline;
|
|
|
|
constexpr auto VERTEX_SHADER_FILE = "shader/model.vs.hlsl.spv";
|
|
constexpr auto FRAGMENT_SHADER_FILE = "shader/model.ps.hlsl.spv";
|
|
|
|
constexpr auto BACKGROUND_VERTEX_SHADER_FILE = "shader/background.vs.hlsl.spv";
|
|
constexpr auto BACKGROUND_FRAGMENT_SHADER_FILE = "shader/background.ps.hlsl.spv";
|
|
|
|
vk::ShaderModule CreateShader(const Device *device, cstr shaderFile);
|
|
Pipeline CreatePipeline(const Device *device, vk::Format attachmentFormat, const GpuResourceManager *resourceManager);
|
|
Pipeline
|
|
CreateBackgroundPipeline(const Device *device, vk::Format attachmentFormat, const GpuResourceManager *resourceManager); |