KhronosGroup / KhronosGroup/SPIRV-Cross

[GLSL] Packing functions emulation

Open
#1,997 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
GLSL
Stars
2.5k
Forks
713
Avg merge
2d 18h
Merged PRs (30d)
16

Description

It would be nice if spirv-cross would emulate packing functions (like packHalf2x16) if glsl doesn't support them. Google angle project do that (BuiltInFunctionEmulatorGLSL.cpp).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the GLSL code-generation paths and ANGLE's BuiltInFunctionEmulatorGLSL.cpp, especially how packHalf2x16 and related packing functions are handled. Determine which GLSL targets need emulation and define completion as generating compatible emulation for the unsupported packing functions.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.