mirror of
https://github.com/Ishan09811/pine.git
synced 2025-04-24 08:55:10 +00:00
fix
This commit is contained in:
parent
e86459b167
commit
36afe59d4f
@ -9,6 +9,9 @@
|
||||
#include "helper_shaders.h"
|
||||
|
||||
namespace skyline::gpu {
|
||||
|
||||
bool isSampleShadingEnabled= false
|
||||
|
||||
static vk::raii::ShaderModule CreateShaderModule(GPU &gpu, vfs::Backing &shaderBacking) {
|
||||
std::vector<u32> shaderBuf(shaderBacking.size / 4);
|
||||
|
||||
@ -70,7 +73,7 @@ namespace skyline::gpu {
|
||||
|
||||
constexpr static vk::PipelineMultisampleStateCreateInfo multisampleState{
|
||||
.rasterizationSamples = vk::SampleCountFlagBits::e1,
|
||||
.sampleShadingEnable = *state.settings->enableSampleShading,
|
||||
.sampleShadingEnable = isSampleShadingEnabled,
|
||||
.minSampleShading = 1.0f,
|
||||
.alphaToCoverageEnable = false,
|
||||
.alphaToOneEnable = false
|
||||
|
@ -15,6 +15,8 @@ namespace skyline::gpu {
|
||||
class TextureView;
|
||||
class GPU;
|
||||
|
||||
extern bool isSampleShadingEnabled;
|
||||
|
||||
/**
|
||||
* @brief A base class that can be inherited by helper shaders that render to a single color/depth rendertarget to simplify pipeline creation
|
||||
*/
|
||||
|
@ -72,7 +72,8 @@ namespace skyline::kernel {
|
||||
|
||||
// Scheduler retrieves information from the NPDM of the process so it needs to be initialized after the process is created
|
||||
state.scheduler = std::make_shared<kernel::Scheduler>(state);
|
||||
|
||||
|
||||
skyline::gpu::isSampleShadingEnabled = *state.settings->enableSampleShading;
|
||||
if (!isJitEnabled) {
|
||||
state.nce = std::make_shared<nce::NCE>(state);
|
||||
} else { // 32-bit
|
||||
|
Loading…
x
Reference in New Issue
Block a user