public Effect(byte[] vertexData, byte[] fragmentData) { vertexShader = Bgfx.CreateShader(vertexData); fragmentShader = Bgfx.CreateShader(fragmentData); program = Bgfx.CreateProgram(vertexShader, fragmentShader, true); }