M1 Mac Error: "UNSUPPORTED (log once): POSSIBLE ISSUE: unit 2 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float)"
- Dominant language
- Kotlin
- Stars
- 3k
- Forks
- 148
- Avg merge
- 13h 44m
- Merged PRs (30d)
- 1
Description
# Setup
- JDK: 1.8 (Amazon Coretto 1.8)
- **(M1 Max)** Mackbook Pro 16 2021.
- MacOs Monterey 12.0.1
# Issue:
```
UNSUPPORTED (log once): POSSIBLE ISSUE: unit 1 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable
```
This doesn't actually seem to affect the output of the program. It still runs completely as expected.
This seems to be a common issue that is specific to GLSL and M1?
- https://developer.apple.com/forums/thread/683865
- https://blog.dengine.net/2021/01/wonders-and-mysteries-of-the-m1/
- https://stackoverflow.com/questions/32237439/why-do-i-get-texture-unit-0-is-accessed-both-as-sampler2d-and-samplercube-for
# Repro steps:
The following will repro the issue.
```
import com.soywiz.korge.Korge
import com.soywiz.korge.view.circle
suspend fun main() = Korge() {
circle {
}
}
```
This however, does **not** reproduce the issue:
```
import com.soywiz.korge.Korge
suspend fun main() = Korge() {
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the provided M1 reproduction with circle and compare it with the empty Korge example. Trace the rendering and GLSL texture-sampler behavior that produces the warning; done means the warning is resolved without changing the program's output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100