Beispiel #1
0
        public GLNextCmdShaderProgramCache(IGLCmdShaderProgramEntrypoint graphics)
        {
            mEntrypoint = graphics;
            mProgramID  = 0;
            mVAO        = 0;

            const int NO_OF_DESCRIPTOR_SETS = 2;

            mBoundDescriptorSets = new GLCmdDescriptorSetParameter[NO_OF_DESCRIPTOR_SETS];

            mNoOfBindingPoints = 0;
            mUniformBuffers    = new uint[0];
            mUniformOffsets    = new IntPtr[0];
            mUniformSizes      = new IntPtr[0];
        }
Beispiel #2
0
 public DefaultGLDeviceEntrypoint
 (
     IGLCmdVBOEntrypoint vbo,
     IGLSamplerEntrypoint sampler,
     IGLDeviceImageEntrypoint image,
     IGLDeviceImageViewEntrypoint imageView,
     IGLImageDescriptorEntrypoint imageDescriptor,
     IGLShaderModuleEntrypoint shaderModule,
     IGLDescriptorPoolEntrypoint descriptorPool,
     IGLBufferEntrypoint buffers,
     IGLDeviceMemoryEntrypoint deviceMemory,
     IGLSemaphoreEntrypoint semaphore,
     IGLGraphicsPipelineEntrypoint graphicsPipeline,
     IGLImageFormatEntrypoint imageFormat,
     IGLGraphicsPipelineCompiler graphicsCompiler,
     IGLFenceEntrypoint fence,
     IGLCmdShaderProgramEntrypoint shaderProgram,
     IGLDescriptorSetEntrypoint descriptorSet,
     IGLUniformBlockEntrypoint uniformBlocks
 )
 {
     VBO              = vbo;
     Sampler          = sampler;
     Image            = image;
     ImageView        = imageView;
     ImageDescriptor  = imageDescriptor;
     ShaderModule     = shaderModule;
     DescriptorPool   = descriptorPool;
     Buffers          = buffers;
     DeviceMemory     = deviceMemory;
     Semaphore        = semaphore;
     GraphicsPipeline = graphicsPipeline;
     ImageFormat      = imageFormat;
     GraphicsCompiler = graphicsCompiler;
     Fence            = fence;
     ShaderProgram    = shaderProgram;
     DescriptorSet    = descriptorSet;
     UniformBlocks    = uniformBlocks;
 }
Beispiel #3
0
 public GLNextCmdShaderProgramCache(IGLCmdShaderProgramEntrypoint graphics)
 {
     mEntrypoint = graphics;
     mProgramID  = 0;
     mVAO        = 0;
 }