Small rename

This commit is contained in:
Luke Street
2026-06-18 09:10:06 -06:00
parent 509021de0a
commit 0d78e100df
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -306,7 +306,7 @@ void complete_slot(size_t slotIdx, wgpu::MapAsyncStatus status, wgpu::StringView
} // namespace } // namespace
void initialize() { void initialize() {
if (!webgpu::g_hasCoreCompatibility) { if (!webgpu::g_hasCoreFeatures) {
return; return;
} }
g_bindGroupLayout = create_bind_group_layout("Depth Peek Bind Group Layout"); g_bindGroupLayout = create_bind_group_layout("Depth Peek Bind Group Layout");
+2 -2
View File
@@ -401,7 +401,7 @@ void initialize() {
} }
} }
// Skip depth copies in compatibility mode // Skip depth copies in compatibility mode
if (webgpu::g_hasCoreCompatibility) { if (webgpu::g_hasCoreFeatures) {
for (const auto& conv : DepthConvPipelines) { for (const auto& conv : DepthConvPipelines) {
g_pipelines[conv.fmt] = create_pipeline(conv, DepthShaderPreamble, g_depthBindGroupLayout); g_pipelines[conv.fmt] = create_pipeline(conv, DepthShaderPreamble, g_depthBindGroupLayout);
if (conv.outputFormat != to_wgpu(conv.fmt)) { if (conv.outputFormat != to_wgpu(conv.fmt)) {
@@ -441,7 +441,7 @@ static void execute(const wgpu::CommandEncoder& cmd, const ConvRequest& req, con
wgpu::BindGroup bindGroup; wgpu::BindGroup bindGroup;
if (gx::is_depth_format(req.fmt)) { if (gx::is_depth_format(req.fmt)) {
// Skip depth copies in compatibility mode // Skip depth copies in compatibility mode
if (!webgpu::g_hasCoreCompatibility) { if (!webgpu::g_hasCoreFeatures) {
return; return;
} }
const std::array bindGroupEntries{ const std::array bindGroupEntries{
+1 -1
View File
@@ -635,7 +635,7 @@ wgpu::RenderPipeline build_pipeline(const PipelineConfig& config, ArrayRef<wgpu:
ZoneScoped; ZoneScoped;
const float depthBias = (UseReversedZ ? -1.0f : 1.0f) * std::bit_cast<float>(config.polygonOffsetBits); const float depthBias = (UseReversedZ ? -1.0f : 1.0f) * std::bit_cast<float>(config.polygonOffsetBits);
const float depthBiasSlopeScale = (UseReversedZ ? -1.0f : 1.0f) * std::bit_cast<float>(config.polygonOffsetScaleBits); const float depthBiasSlopeScale = (UseReversedZ ? -1.0f : 1.0f) * std::bit_cast<float>(config.polygonOffsetScaleBits);
const float depthBiasClamp = webgpu::g_hasCoreCompatibility const float depthBiasClamp = webgpu::g_hasCoreFeatures
? std::bit_cast<float>(config.polygonOffsetClampBits) ? std::bit_cast<float>(config.polygonOffsetClampBits)
: 0.0f; : 0.0f;
const wgpu::DepthStencilState depthStencil{ const wgpu::DepthStencilState depthStencil{
+3 -3
View File
@@ -60,7 +60,7 @@ static wgpu::Adapter g_adapter;
wgpu::Instance g_instance; wgpu::Instance g_instance;
wgpu::AdapterInfo g_adapterInfo; wgpu::AdapterInfo g_adapterInfo;
static wgpu::SurfaceCapabilities g_surfaceCapabilities; static wgpu::SurfaceCapabilities g_surfaceCapabilities;
bool g_hasCoreCompatibility = false; bool g_hasCoreFeatures = false;
bool g_bcTexturesSupported = false; bool g_bcTexturesSupported = false;
bool g_astcTexturesSupported = false; bool g_astcTexturesSupported = false;
bool g_textureComponentSwizzleSupported = false; bool g_textureComponentSwizzleSupported = false;
@@ -889,7 +889,7 @@ bool initialize(AuroraBackend auroraBackend, bool allowCpu) {
requiredLimits.maxStorageBuffersPerShaderStage, requiredLimits.minUniformBufferOffsetAlignment, requiredLimits.maxStorageBuffersPerShaderStage, requiredLimits.minUniformBufferOffsetAlignment,
requiredLimits.minStorageBufferOffsetAlignment); requiredLimits.minStorageBufferOffsetAlignment);
std::vector<wgpu::FeatureName> requiredFeatures; std::vector<wgpu::FeatureName> requiredFeatures;
g_hasCoreCompatibility = false; g_hasCoreFeatures = false;
g_bcTexturesSupported = false; g_bcTexturesSupported = false;
g_astcTexturesSupported = false; g_astcTexturesSupported = false;
g_textureComponentSwizzleSupported = false; g_textureComponentSwizzleSupported = false;
@@ -901,7 +901,7 @@ bool initialize(AuroraBackend auroraBackend, bool allowCpu) {
feature == wgpu::FeatureName::TextureCompressionASTC || feature == wgpu::FeatureName::TextureCompressionASTC ||
feature == wgpu::FeatureName::TextureComponentSwizzle) { feature == wgpu::FeatureName::TextureComponentSwizzle) {
if (feature == wgpu::FeatureName::CoreFeaturesAndLimits) { if (feature == wgpu::FeatureName::CoreFeaturesAndLimits) {
g_hasCoreCompatibility = true; g_hasCoreFeatures = true;
} else if (feature == wgpu::FeatureName::TextureCompressionBC) { } else if (feature == wgpu::FeatureName::TextureCompressionBC) {
g_bcTexturesSupported = true; g_bcTexturesSupported = true;
} else if (feature == wgpu::FeatureName::TextureCompressionASTC) { } else if (feature == wgpu::FeatureName::TextureCompressionASTC) {
+1 -1
View File
@@ -52,7 +52,7 @@ extern wgpu::RenderPipeline g_CopyPremultipliedAlphaPipeline;
extern wgpu::BindGroup g_CopyBindGroup; extern wgpu::BindGroup g_CopyBindGroup;
extern wgpu::Instance g_instance; extern wgpu::Instance g_instance;
extern wgpu::AdapterInfo g_adapterInfo; extern wgpu::AdapterInfo g_adapterInfo;
extern bool g_hasCoreCompatibility; extern bool g_hasCoreFeatures;
extern bool g_bcTexturesSupported; extern bool g_bcTexturesSupported;
extern bool g_astcTexturesSupported; extern bool g_astcTexturesSupported;
extern bool g_textureComponentSwizzleSupported; extern bool g_textureComponentSwizzleSupported;