Kode / Kha

Ultra-portable, high performance, open source multimedia framework.
http://kha.tech
zlib License
1.49k stars 174 forks source link

Passing array uniform doesn't work on Metal #1352

Open BlackGoku36 opened 3 years ago

BlackGoku36 commented 3 years ago

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:

mSampleRate = 44100

mFormatFlags = 00000009

mBytesPerPacket = 8

mFramesPerPacket = 1

mChannelsPerFrame = 2

mBytesPerFrame = 8

mBitsPerChannel = 32