KhronosGroup / KhronosGroup/SPIRV-Guide

Add Chapter - OpUndef

Open
#28 0 comments 0 reactions 1 assignee Claimed by @spencer-lunarg View on GitHub
New Chapter
Dominant language
GLSL
Stars
247
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Similar to the LLVM `undef` (and later `Poison`)

What is `OpUndef`, when is it used, when can it be valid (or invalid)

```
%select = OpSelect %int %cond %undef %value
%access = OpAccessChain %ptr_uniformconstant_image %image_array %select
%load = OpLoad %image_ty %access
%fetch = OpImageFetch %v4f32 %load %coords Lod 0
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.