Repository Analysis

gfx-rs/wgpu

A cross-platform, safe, pure-Rust graphics API.

5.4 Low AI signal View on GitHub
5.4
Adjusted Score
5.4
Raw Score
100%
Time Factor
2026-05-29
Last Push
17,253
Stars
Rust
Language
367,763
Lines of Code
1072
Files
2005
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 4HIGH 0MEDIUM 22LOW 1979

Pattern Findings

2005 matches across 7 categories. Click a row to expand file-level details.

Over-Commented Block1972 hits · 1868 pts
SeverityFileLineSnippet
LOWwgpu-hal/Cargo.toml41
LOWwgpu-hal/Cargo.toml61# enables the `vulkan` feature in `wgpu-core-deps-windows-linux-android` which in turn enables the
LOWwgpu-hal/src/lib.rs1//! A cross-platform unsafe graphics abstraction.
LOWwgpu-hal/src/lib.rs21//! graphics system. If you need safety, the [`wgpu-core`] crate provides a
LOWwgpu-hal/src/lib.rs41//! unlike `wgpu-core`, which refers to objects by ID.
LOWwgpu-hal/src/lib.rs61//! do any mutating work.
LOWwgpu-hal/src/lib.rs81//! Vulkan bindings. It's also available on macOS, if you install [MoltenVK].
LOWwgpu-hal/src/lib.rs101//!
LOWwgpu-hal/src/lib.rs121//! available on the system. For example, [`vulkan::Api::Instance::init`][Ii]
LOWwgpu-hal/src/lib.rs141//! - [`Api::Surface`] implements the [`Surface`] trait, which represents a
LOWwgpu-hal/src/lib.rs161//! applications, like web browsers, where the API is available to untrusted
LOWwgpu-hal/src/lib.rs181//! A desire for "defense in depth" may suggest performing additional validation
LOWwgpu-hal/src/lib.rs201//! functionality, which is only available in `wgpu-core`.
LOWwgpu-hal/src/lib.rs241extern crate alloc;
LOWwgpu-hal/src/lib.rs541
LOWwgpu-hal/src/lib.rs621 ///
LOWwgpu-hal/src/lib.rs681 &self,
LOWwgpu-hal/src/lib.rs701 ///
LOWwgpu-hal/src/lib.rs721 /// by future acquisitions.
LOWwgpu-hal/src/lib.rs741 /// - You may only have one texture acquired from `self` at a time. When
LOWwgpu-hal/src/lib.rs761 /// returned by subsequent calls to [`self.acquire_texture`].
LOWwgpu-hal/src/lib.rs801 ///
LOWwgpu-hal/src/lib.rs821/// for command submission.
LOWwgpu-hal/src/lib.rs841///
LOWwgpu-hal/src/lib.rs861/// [`vulkan::Device`]: vulkan/struct.Device.html
LOWwgpu-hal/src/lib.rs881 type A: Api;
LOWwgpu-hal/src/lib.rs901
LOWwgpu-hal/src/lib.rs921 /// - The given `buffer` must have been created with the [`MAP_READ`] or
LOWwgpu-hal/src/lib.rs941 ///
LOWwgpu-hal/src/lib.rs961 /// # Safety
LOWwgpu-hal/src/lib.rs1101 /// The `value` argument must not exceed the highest value that an actual
LOWwgpu-hal/src/lib.rs1121 value: FenceValue,
LOWwgpu-hal/src/lib.rs1181 /// Submit `command_buffers` for execution on GPU.
LOWwgpu-hal/src/lib.rs1201 /// If two calls to `submit` on a single `Queue` from different threads are
LOWwgpu-hal/src/lib.rs1221 /// - All resources used by a submitted [`CommandBuffer`][cb]
LOWwgpu-hal/src/lib.rs1241 /// [`Fence`]: Api::Fence
LOWwgpu-hal/src/lib.rs1261 /// - `texture` must have been acquired from `surface` via
LOWwgpu-hal/src/lib.rs1281 &self,
LOWwgpu-hal/src/lib.rs1301/// storage. Thus, `CommandBuffer`s must not outlive the
LOWwgpu-hal/src/lib.rs1321///
LOWwgpu-hal/src/lib.rs1341///
LOWwgpu-hal/src/lib.rs1361 ///
LOWwgpu-hal/src/lib.rs1381 /// # Safety
LOWwgpu-hal/src/lib.rs1481 &mut self,
LOWwgpu-hal/src/lib.rs1501 /// clear any bind groups.
LOWwgpu-hal/src/lib.rs1581 /// - [`set_vertex_buffer`](CommandEncoder::set_vertex_buffer)
LOWwgpu-hal/src/lib.rs1701 /// - [`set_compute_pipeline`](CommandEncoder::set_compute_pipeline)
LOWwgpu-hal/src/lib.rs1961 /// is the bind group binding's stated [size], rounded up to the next
LOWwgpu-hal/src/lib.rs2001 pub capabilities: Capabilities,
LOWwgpu-hal/src/lib.rs2161///
LOWwgpu-hal/src/lib.rs2181///
LOWwgpu-hal/src/lib.rs2201/// previously stated that a `BufferBinding` must have `offset` strictly less
LOWwgpu-hal/src/lib.rs2221 /// `BufferBinding`s, while still allowing public read access to the `offset`
LOWwgpu-hal/src/lib.rs2281 /// of this method. `Buffer::binding` validates the size of the binding
LOWwgpu-hal/src/lib.rs2761
LOWwgpu-hal/src/validation_canary.rs1use alloc::{string::String, vec::Vec};
LOWwgpu-hal/src/dx12/adapter.rs661 // As our RWByteAddressBuffers can exist on both descriptor heaps and
LOWwgpu-hal/src/dx12/adapter.rs741 let downlevel = wgt::DownlevelCapabilities::default();
LOWwgpu-hal/src/dx12/device.rs881 unsafe fn create_pipeline_layout(
LOWwgpu-hal/src/dx12/device.rs901 // Each dynamic uniform buffer takes up a CBV root descriptor.
1912 more matches not shown…
Decorative Section Separators15 hits · 53 pts
SeverityFileLineSnippet
MEDIUMnaga/src/front/wgsl/parse/lexer.rs1226 /// D(𝐡) = ───────────────────────────────────────────────────
MEDIUMnaga/src/front/wgsl/parse/lexer.rs1231 Token::DocComment("/// D(𝐡) = ───────────────────────────────────────────────────"),
MEDIUMwgpu/Cargo.toml49# --------------------------------------------------------------------
MEDIUMwgpu/Cargo.toml108# --------------------------------------------------------------------
MEDIUMwgpu/Cargo.toml125# --------------------------------------------------------------------
MEDIUMwgpu/Cargo.toml137# --------------------------------------------------------------------
MEDIUMwgpu/Cargo.toml151# --------------------------------------------------------------------
MEDIUMwgpu-core/Cargo.toml46# --------------------------------------------------------------------
MEDIUMwgpu-core/Cargo.toml56# --------------------------------------------------------------------
MEDIUMwgpu-core/Cargo.toml63# --------------------------------------------------------------------
MEDIUMwgpu-core/Cargo.toml69# --------------------------------------------------------------------
MEDIUMwgpu-core/Cargo.toml88# --------------------------------------------------------------------
MEDIUMwgpu-core/Cargo.toml100# --------------------------------------------------------------------
MEDIUMwgpu-core/Cargo.toml117# --------------------------------------------------------------------
MEDIUMwgpu-core/Cargo.toml127# --------------------------------------------------------------------
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippet
CRITICALwgpu-hal/src/metal/command.rs1309 while self.state.stage_infos.ms.work_group_memory_sizes.len()
CRITICALwgpu-hal/src/metal/command.rs1312 self.state.stage_infos.ms.work_group_memory_sizes.push(0);
CRITICALwgpu-core/src/command/render.rs3033 if state.pass.base.device.indirect_validation.is_some() {
CRITICALwgpu-core/src/command/render.rs3286 let bundle = state.pass.base.tracker.bundles.insert_single(bundle);
AI Slop Vocabulary7 hits · 22 pts
SeverityFileLineSnippet
MEDIUMwgpu-hal/Cargo.toml50# The interaction of features between wgpu-core and wgpu-hal is a bit nuanced to get
MEDIUMwgpu-hal/src/dx12/mod.rs143 _ => crate::DeviceError::Unexpected, // could be unreachable!() but we prefer to be more robust
MEDIUMnaga/src/proc/index.rs79 /// Some graphics hardware provides "robust buffer access", a feature that
MEDIUMnaga/src/proc/overloads/mod.rs165 /// Essentially, if any one of the arguments is not a constant expression,
MEDIUMwgpu/Cargo.toml138#! The following features facilitate integration with third-party supporting libraries.
MEDIUMwgpu-core/Cargo.toml118#! The following features facilitate integration with third-party supporting libraries.
MEDIUMwgpu-core/src/pipeline_cache.rs169 /// We assume that your cache storage system will be relatively robust, and so
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippet
LOWwgpu-hal/src/dx12/device_creation.rs72 // Step 1: Get ID3D12SDKConfiguration1 via D3D12GetInterface
LOWwgpu-hal/src/dx12/device_creation.rs77 // Step 2: Create device factory with the specified SDK version and path
LOWwgpu-hal/src/vulkan/sampler.rs122 // We need to check if we can create more samplers.
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippet
LOWnaga/src/proc/constant_evaluator.rs453/// Example usage:
LOWnaga/src/front/glsl/mod.rs143/// # Example usage
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippet
LOWcts_runner/src/bootstrap.js295 function DOMExceptionOperationError(msg) {
LOWcts_runner/src/bootstrap.js307 function DOMExceptionInvalidCharacterError(msg) {