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