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); }
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); }