Skip to content

Commit

Permalink
Match FragmentShaderFlags definition with the other PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Sep 8, 2022
1 parent 974cd38 commit e7195d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions GPU/Common/FragmentShaderGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#pragma once

#include "Common/Common.h"
#include "Common/GPU/Shader.h"
#include "Common/GPU/thin3d.h"

Expand All @@ -40,8 +41,9 @@ struct FShaderID;
#define CONST_PS_STENCILVALUE 11

// Can technically be deduced from the fragment shader ID, but this is safer.
enum FragmentShaderFlags {
FS_FLAG_INPUT_ATTACHMENT,
enum class FragmentShaderFlags : u32 {
FS_FLAG_INPUT_ATTACHMENT = 1,
};
ENUM_CLASS_BITOPS(FragmentShaderFlags);

bool GenerateFragmentShader(const FShaderID &id, char *buffer, const ShaderLanguageDesc &compat, Draw::Bugs bugs, uint64_t *uniformMask, FragmentShaderFlags *fragmentShaderFlags, std::string *errorString);

0 comments on commit e7195d5

Please sign in to comment.