internal unsafe static void Init() { FrameConstants = MyRender.WrapResource(new MyConstantBuffer(sizeof(MyFrameConstantsLayout)), "frame constants"); ProjectionConstants = MyRender.WrapResource(new MyConstantBuffer(sizeof(Matrix)), "projection constants"); ObjectConstants = MyRender.WrapResource(new MyConstantBuffer(sizeof(Matrix)), "object constants"); BonesConstants = MyRender.WrapResource(new MyConstantBuffer(sizeof(Matrix) * MyRenderConstants.SHADER_MAX_BONES), "bones constants"); LocalTransformConstants = MyRender.WrapResource(new MyConstantBuffer(32), "local transform constants"); // temporary? merge with frame FoliageConstants = MyRender.WrapResource(new MyConstantBuffer(16), "folaige constants"); }
internal unsafe static void Init() { FrameConstants = MyRender.WrapResource(new MyConstantBuffer(sizeof(MyFrameConstantsLayout)), "frame constants"); ProjectionConstants = MyRender.WrapResource(new MyConstantBuffer(sizeof(Matrix)), "projection constants"); ObjectConstants = MyRender.WrapResource(new MyConstantBuffer(sizeof(Matrix)), "object constants"); BonesConstants = MyRender.WrapResource(new MyConstantBuffer(sizeof(Matrix) * MyRenderConstants.SHADER_MAX_BONES), "bones constants"); LocalTransformConstants = MyRender.WrapResource(new MyConstantBuffer(32), "local transform constants"); // temporary? merge with frame FoliageConstants = MyRender.WrapResource(new MyConstantBuffer(16), "folaige constants"); }