# US 2025/0378635 A1 · Per-Pipeline State Object (PSO) Shader Validation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0378635 A1
- Document ID: US20250378635A1
- Status: Published application
- Kind: A1
- Application number: 19/213,488
- Filed: 2025-05-20
- Published: 2025-12-11
- Earliest claimed: 2024-06-07
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Guillaume Marques; Jacek G. Ratajewski; Alejandro S. Segovia Azapian; Matthijs L. van der Meide; Nikita M. Sokolnikov; Pawel Szczerbuk
- Web page: https://patentgrep.com/patent/US20250378635A1

## CPC

- G06T 15/005: {General purpose rendering architectures}
- G06T 15/80: Shading
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 15/00: Three-dimensional [3D] image rendering
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

According to some graphics processing frameworks, so-called “pipeline state objects” (or “PSOs”) may be used to describe how a rendering pipeline will behave in each pipeline stage when rendering graphics (and/or performing compute pipeline operations). Often, during the development or debugging of a game or other type of application, developers may prefer to focus on validating only a specific subset of PSOs. However, current shader validation workflow designs may only be able to be enabled (or disabled) globally, i.e., across all shaders and PSOs, which is preventing these desired per-PSO shader validation workflows from being possible. In addition to improving performance, selective per-PSO shader validation techniques allow for even more demanding applications, e.g., applications that push device hardware to its limits, to still be able to benefit from selective validation of PSOs, e.g., PSOs that are currently being tested or suspected to be the cause of problems in an application.

## Claims

### Claim 1

A non-transitory program storage device, readable by at least one processor and comprising instructions stored thereon to cause the at least one processor to:
define at least a first pipeline state object (PSO), wherein the first PSO comprises:
at least a first shader program for execution on a graphics processing unit (GPU); and
one or more PSO parameters, and
wherein the first shader program comprises instrumentation code configured to perform at least one validation operation on the first shader program; and
set a value of a first PSO shader validation variable to one of:
an enabled state that causes the at least one validation operation on the first shader program to be enabled; or
a disabled state that causes the at least one validation operation on the first shader program to be disabled.

### Claim 2 (depends on 1)

The non-transitory program storage device of claim 1, wherein the first PSO shader validation variable comprises a first PSO parameter of the one or more PSO parameters.

### Claim 3 (depends on 2)

The non-transitory program storage device of claim 2, wherein the value of the first PSO shader validation variable is set via one of the following methods: (a) a software program; or (b) an Application Programming Interface (API).

### Claim 4 (depends on 1)

The non-transitory program storage device of claim 1, wherein the first PSO shader validation variable comprises an environmental variable (EV).

### Claim 5 (depends on 1)

The non-transitory program storage device of claim 1, wherein the instructions stored thereon further cause the at least one processor to:
set a value of a second PSO shader validation variable to one of:
an enabled state that causes the at least one validation operation on the first shader program to be enabled; or
a disabled state that causes the at least one validation operation on the first shader program to be disabled.

### Claim 6 (depends on 5)

The non-transitory program storage device of claim 5, wherein the second PSO shader validation variable comprises an environmental variable.

### Claim 7 (depends on 6)

The non-transitory program storage device of claim 6, wherein the first PSO shader validation variable comprises a first PSO parameter of the one or more PSO parameters, and wherein the value of the second PSO shader validation variable takes precedence over the value of the first PSO shader validation variable in setting the state of the at least one validation operation on the first shader program.

### Claim 8 (depends on 6)

The non-transitory program storage device of claim 6, wherein setting the value of the second PSO shader validation variable does not require a recompilation of an application executing the first shader program.

### Claim 9 (depends on 1)

The non-transitory program storage device of claim 1, wherein a default value of the first PSO shader validation variable is the enabled state.

### Claim 10 (depends on 1)

The non-transitory program storage device of claim 1, wherein a default value of the first PSO shader validation variable is the disabled state.

### Claim 11 (depends on 1)

The non-transitory program storage device of claim 1, wherein the first PSO further comprises:
a second shader program for execution on the GPU,
wherein the second shader program comprises instrumentation code configured to perform at least one validation operation on the second shader program,
wherein setting the value of a first PSO shader validation variable to the enabled state further causes the at least one validation operation on the second shader program to be enabled, and
wherein setting the value of a first PSO shader validation variable to the disabled state that causes the at least one validation operation on the second shader program to be disabled.

### Claim 12 (depends on 1)

The non-transitory program storage device of claim 1, wherein the instrumentation code configured to perform at least one validation operation on the first shader program further comprises code configured to:
(a) perform an out of bounds memory access check;
(b) perform an incorrect textures type check;
(c) check for a stack overflow error;
(d) perform resource usage checks;
(e) perform acceleration structure type checks; or
(f) perform residency checks.

### Claim 13

A system comprising:
a display;
a graphics processing unit (GPU);
memory; and
at least one processor operable to interact with the memory, and configured to execute instructions to:
define at least a first pipeline state object (PSO), wherein the first PSO comprises:
at least a first shader program for execution on the GPU; and
one or more PSO parameters, and
wherein the first shader program comprises instrumentation code configured to perform at least one validation operation on the first shader program;
and
set a value of a first PSO shader validation variable to one of:
an enabled state that causes the at least one validation operation on the first shader program to be enabled; or
a disabled state that causes the at least one validation operation on the first shader program to be disabled.

### Claim 14 (depends on 13)

The system of claim 13, wherein the first PSO shader validation variable comprises a first PSO parameter of the one or more PSO parameters, and wherein the value of the first PSO shader validation variable is set via one of the following methods:
(a) a software program; or (b) an Application Programming Interface (API).

### Claim 15 (depends on 13)

The system of claim 13, wherein the first PSO shader validation variable comprises an environmental variable.

### Claim 16 (depends on 14)

The system of claim 14, wherein the instructions further cause the at least one processor to:
set a value of a second PSO shader validation variable to one of:
an enabled state that causes the at least one validation operation on the first shader program to be enabled; or
a disabled state that causes the at least one validation operation on the first shader program to be disabled.

### Claim 17 (depends on 16)

The system of claim 16, wherein the second PSO shader validation variable comprises an environmental variable, and wherein the value of the second PSO shader validation variable takes precedence over the value of the first PSO shader validation variable in setting the state of the at least one validation operation on the first shader program.

### Claim 18

A graphical processing method, wherein at least one processor performs operations comprising:
defining at least a first pipeline state object (PSO), wherein the first PSO comprises:
at least a first shader program for execution on a graphical processing unit (GPU); and
one or more PSO parameters, and
wherein the first shader program comprises instrumentation code configured to perform at least one validation operation on the first shader program; and
setting a value of a first PSO shader validation variable to one of:
an enabled state that causes the at least one validation operation on the first shader program to be enabled; or
a disabled state that causes the at least one validation operation on the first shader program to be disabled.

### Claim 19 (depends on 18)

The method of claim 18, wherein the first PSO shader validation variable comprises a first PSO parameter of the one or more PSO parameters, and wherein the value of the first PSO shader validation variable is set via one of the following methods: (a) a software program; or (b) an Application Programming Interface (API).

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
setting a value of a second PSO shader validation variable to one of:
an enabled state that causes the at least one validation operation on the first shader program to be enabled; or
a disabled state that causes the at least one validation operation on the first shader program to be disabled,
wherein the value of the second PSO shader validation variable takes precedence over the value of the first PSO shader validation variable in setting the state of the at least one validation operation on the first shader program.
