Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing array uniform doesn't work on Metal #1352

Open
BlackGoku36 opened this issue Jul 30, 2021 · 0 comments
Open

Passing array uniform doesn't work on Metal #1352

BlackGoku36 opened this issue Jul 30, 2021 · 0 comments

Comments

@BlackGoku36
Copy link

Describe the bug
Passing uniform of array to shader doesn't work on metal

To Reproduce

//get constant location like this
a = pipeline.getConstantLocation("lights[" + i + "]");

Expected behavior
Should be able to pass array of something to shader

Execution Environment:

  • Host system (where you compile your code): MacOS (Metal)
  • Target system (where you run your code): MacOS (Metal)
  • IDE used (if any): VSCODE
  • Kha revision: 7ed4fea
  • Kha build output (Using Kha...):
Using Kha (0ad34631, ?? Backends/Kore/) from /Users/urjasvisuthar/Kha
Creating Kha project.
Exporting asset 1 of 3 (potrait.png).
Exporting asset 2 of 3 (test.bin).
Exporting asset 3 of 3 (test.gltf).
Compiling shader 1 of 8 (shade.frag.glsl).
Compiling shader 2 of 8 (shade.vert.glsl).
Compiling shader 3 of 8 (shadow.frag.glsl).
Compiling shader 4 of 8 (shadow.vert.glsl).
Compiling shader 5 of 8 (shadowcube.frag.glsl).
Compiling shader 6 of 8 (shadowcube.vert.glsl).
Compiling shader 7 of 8 (texdebug.frag.glsl).
Compiling shader 8 of 8 (texdebug.vert.glsl).
Compiling shader 1 of 8 (painter-colored.frag.glsl).
Compiling shader 2 of 8 (painter-colored.vert.glsl).
Compiling shader 3 of 8 (painter-image.frag.glsl).
Compiling shader 4 of 8 (painter-image.vert.glsl).
Compiling shader 5 of 8 (painter-text.frag.glsl).
Compiling shader 6 of 8 (painter-text.vert.glsl).
Compiling shader 7 of 8 (painter-video.frag.glsl).
Compiling shader 8 of 8 (painter-video.vert.glsl).
Using Kinc (e2a61ca0) from /Users/urjasvisuthar/Kha/Kinc
kincfile found.
Creating macOS project files.
Done.
  • Application output (if it runs):
Starting Kinc
2021-07-30 15:27:55.648562+0530 New Project[3064:64418] Metal GPU Frame Capture Enabled
2021-07-30 15:27:55.648995+0530 New Project[3064:64418] Metal API Validation Enabled
Starting application
2021-07-30 15:27:55.850924+0530 New Project[3064:64418] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000001f4ba0> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2021-07-30 15:27:55.911942+0530 New Project[3064:64418]   saved enable noise cancellation setting is the same as the default (=1)
deviceBufferSize = 4096

mSampleRate = 44100

mFormatFlags = 00000009

mBytesPerPacket = 8

mFramesPerPacket = 1

mChannelsPerFrame = 2

mBytesPerFrame = 8

mBitsPerChannel = 32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant