Oh, I see. I think you can do this
    
    
    var atlas_texture = static:
      var tmp: array[ATLAS_WIDTH * ATLAS_HEIGHT, byte]
      let atlas_texture_src = [0x00.byte, 0x00, 0x22, 0x11, 0x00, 0x33, 0x11, 
0x22, ...]
      for i in 0 ..< len(atlas_texture_src):
        tmp[i] = atlas_texture_src[i]
      tmp
    
    
    Run

given that `atlas_texture_src` is known at the compile-time.

Reply via email to