コード例 #1
0
        public void Initialize()
        {
            Instance = new GraphicsInstance(Parameters);

            Adapter = new GraphicsAdapter(Instance);

            Device = new GraphicsDevice(Adapter);

            Texture = new Texture(Device);

            Framebuffer = new Framebuffer(Device);

            Context = new GraphicsContext(Device);
        }
コード例 #2
0
ファイル: Game.cs プロジェクト: PinedaRP/Zeckoxe-Engine
        public void Initialize()
        {
            Instance = new GraphicsInstance(Parameters);

            Adapter = new GraphicsAdapter(Instance);

            Device = new GraphicsDevice(Adapter);

            Texture = new Texture(Device);

            Framebuffer = new Framebuffer(Device);

            Context = new GraphicsContext(Device);


            PipelineState = new PipelineState(new string[] { "Shaders/VertexShader.hlsl", "Shaders/PixelShader.hlsl" }, Framebuffer);
        }