Skip to content

Commit

Permalink
Add ignore and no_run to get cargo test to pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
LegNeato committed Nov 27, 2023
1 parent 83f8c72 commit f2c35c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ However, many things aren't implemented yet. That means that while being technic

![Sky shader](docs/assets/sky.jpg)

```rust
```rust,no_run
use glam::{Vec3, Vec4, vec2, vec3};
#[spirv(fragment)]
Expand Down
4 changes: 2 additions & 2 deletions crates/spirv-builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It takes care of pulling in the `SPIR-V` backend for Rust, `rustc_codegen_spirv`

## Example

```rust
```rust,no_run
use spirv_builder::{MetadataPrintout, SpirvBuilder};
fn main() -> Result<(), Box<dyn std::error::Error>> {
Expand All @@ -23,7 +23,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

This example will build a shader crate called `my_shaders`. You typically insert this code in your crate's `build.rs` that requires the shader binary. The path to the shader module's binary will be set in the `my_shaders.spv` environment variable, which you can include in your project using something along the lines of:

```rust
```rust,ignore
const SHADER: &[u8] = include_bytes!(env!("my_shaders.spv"));
```

Expand Down
2 changes: 1 addition & 1 deletion crates/spirv-std/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This crate gives a `rust-gpu` shader access to the required `#![spirv(..)]` attr

Here is a small excerpt to see what a shader would look like. See [source][source] for full details of the shader that generates above image.

```rust,no_run
```rust,ignore
use spirv_std::spirv;
use glam::{Vec3, Vec4, vec2, vec3};
Expand Down

0 comments on commit f2c35c7

Please sign in to comment.