0
0
mirror of https://github.com/Ishan09811/pine.git synced 2025-04-24 08:55:10 +00:00
This commit is contained in:
Ishan09811 2024-07-30 12:22:39 +05:30 committed by GitHub
parent e86459b167
commit 36afe59d4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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
*/

View File

@ -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