Example #1
0
 public GpuFinalDecoder(IPclWorkarounds pclWorkarounds, IClientSettings settings, IContext context)
 {
     this.pclWorkarounds = pclWorkarounds;
     fullTextureProcessor = new FullTextureProcessor(settings, context, FragmentShaderText, new[] { "DiffTexture", "PrevTextureDetailed", "PrevTextureMip" });
     framebuffer = context.Create.Framebuffer();
     mipInfoBuffer = context.Create.Buffer(BufferTarget.UniformBuffer, 16, BufferUsageHint.DynamicDraw);
     sampler = context.Create.Sampler();
 }
Example #2
0
 public GpuDebugger(IPclWorkarounds pclWorkarounds, IClientSettings settings, IContext context)
 {
     this.pclWorkarounds = pclWorkarounds;
     fullTextureProcessor = new FullTextureProcessor(settings, context, FragmentShaderText, new[] { "Texture0", "Texture1" });
     framebuffer = context.Create.Framebuffer();
     mipInfoBuffer = context.Create.Buffer(BufferTarget.UniformBuffer, 16, BufferUsageHint.DynamicDraw);
     sampler = context.Create.Sampler();
 }