private R2GeometryBuffer( final JCGLFramebufferType in_framebuffer, final R2GeometryBufferDescriptionType in_desc, final R2Texture2DType in_t_rgba, final R2Texture2DType in_t_norm, final R2Texture2DType in_t_spec, final R2Texture2DType in_t_depth) { this.framebuffer = NullCheck.notNull(in_framebuffer); this.desc = NullCheck.notNull(in_desc); this.t_rgba = NullCheck.notNull(in_t_rgba); this.t_norm = NullCheck.notNull(in_t_norm); this.t_depth = NullCheck.notNull(in_t_depth); if (in_t_spec != null) { this.t_spec = in_t_spec; this.t_spec_opt = Optional.of(in_t_spec); } else { this.t_spec = null; this.t_spec_opt = Optional.empty(); } long size = 0L; size += this.t_rgba.texture().getRange().getInterval(); size += this.t_norm.texture().getRange().getInterval(); if (this.t_spec != null) { size += this.t_spec.texture().getRange().getInterval(); } size += this.t_depth.texture().getRange().getInterval(); this.range = new UnsignedRangeInclusiveL(0L, size - 1L); }
LightBufferDiffuseSpecular( final JCGLFramebufferType in_framebuffer, final R2LightBufferDescriptionType in_desc, final R2Texture2DType in_t_depth, final R2Texture2DType in_t_diffuse, final R2Texture2DType in_t_specular) { this.framebuffer = NullCheck.notNull(in_framebuffer); this.t_diffuse = NullCheck.notNull(in_t_diffuse); this.t_specular = NullCheck.notNull(in_t_specular); this.t_depth = NullCheck.notNull(in_t_depth); this.description = NullCheck.notNull(in_desc); long size = 0L; size += this.t_diffuse.texture().getRange().getInterval(); size += this.t_specular.texture().getRange().getInterval(); size += this.t_depth.texture().getRange().getInterval(); this.range = new UnsignedRangeInclusiveL(0L, size - 1L); }
private R2DepthVarianceBuffer( final JCGLFramebufferType in_framebuffer, final R2DepthVarianceBufferDescriptionType in_desc, final R2Texture2DType in_t_depth, final R2Texture2DType in_t_variance) { this.framebuffer = NullCheck.notNull(in_framebuffer); this.desc = NullCheck.notNull(in_desc); this.t_depth = NullCheck.notNull(in_t_depth); this.t_variance = NullCheck.notNull(in_t_variance); long size = 0L; size += this.t_depth.texture().getRange().getInterval(); size += this.t_variance.texture().getRange().getInterval(); this.range = new UnsignedRangeInclusiveL(0L, size - 1L); }
LightBufferDiffuseOnly( final JCGLFramebufferType in_framebuffer, final R2LightBufferDescriptionType in_desc, final R2Texture2DType in_t_depth, final R2Texture2DType in_t_diffuse) { this.framebuffer = NullCheck.notNull(in_framebuffer); this.t_diffuse = NullCheck.notNull(in_t_diffuse); this.t_depth = NullCheck.notNull(in_t_depth); this.description = NullCheck.notNull(in_desc); long size = 0L; size += this.t_diffuse.texture().getRange().getInterval(); size += this.t_depth.texture().getRange().getInterval(); this.range = new UnsignedRangeInclusiveL(0L, size - 1L); }
private R2MaskBuffer( final JCGLFramebufferType in_framebuffer, final R2MaskBufferDescriptionType in_desc, final R2Texture2DType in_t_rgba, final @Nullable R2Texture2DType in_t_depth, final @Nullable R2Texture2DUsableType in_t_depth_shared) { this.framebuffer = NullCheck.notNull(in_framebuffer); this.desc = NullCheck.notNull(in_desc); this.t_rgba = NullCheck.notNull(in_t_rgba); this.t_depth = in_t_depth; long size = 0L; size += this.t_rgba.texture().getRange().getInterval(); if (this.t_depth != null) { size += this.t_depth.texture().getRange().getInterval(); } if (in_t_depth_shared != null) { size += in_t_depth_shared.texture().getRange().getInterval(); } this.range = new UnsignedRangeInclusiveL(0L, size - 1L); }
LightBufferSpecularOnly( final JCGLFramebufferType in_framebuffer, final R2LightBufferDescriptionType in_desc, final R2Texture2DType in_t_depth, final R2Texture2DType in_t_specular) { this.framebuffer = NullCheck.notNull(in_framebuffer); this.t_specular = NullCheck.notNull(in_t_specular); this.t_depth = NullCheck.notNull(in_t_depth); this.description = NullCheck.notNull(in_desc); long size = 0L; size += this.t_specular.texture().getRange().getInterval(); size += this.t_depth.texture().getRange().getInterval(); this.range = new UnsignedRangeInclusiveL(0L, size - 1L); }
private R2ImageBuffer( final JCGLFramebufferType in_framebuffer, final R2ImageBufferDescriptionType in_desc, final R2Texture2DType in_t_rgba, final @Nullable R2Texture2DType in_t_depth, final @Nullable R2Texture2DUsableType in_t_depth_shared) { this.framebuffer = NullCheck.notNull(in_framebuffer); this.desc = NullCheck.notNull(in_desc); this.t_rgba = NullCheck.notNull(in_t_rgba); this.t_depth = in_t_depth; long size = 0L; size += this.t_rgba.texture().getRange().getInterval(); if (this.t_depth != null) { size += this.t_depth.texture().getRange().getInterval(); } if (in_t_depth_shared != null) { size += in_t_depth_shared.texture().getRange().getInterval(); } this.range = new UnsignedRangeInclusiveL(0L, size - 1L); }
private R2AmbientOcclusionBuffer( final JCGLFramebufferType in_framebuffer, final R2Texture2DType in_t_occ, final R2AmbientOcclusionBufferDescriptionType in_desc) { this.framebuffer = NullCheck.notNull(in_framebuffer); this.t_occ = NullCheck.notNull(in_t_occ); this.desc = NullCheck.notNull(in_desc); long size = 0L; size += this.t_occ.texture().getRange().getInterval(); this.range = new UnsignedRangeInclusiveL(0L, size - 1L); }
private R2DepthOnlyBuffer( final JCGLFramebufferType in_framebuffer, final R2DepthOnlyBufferDescriptionType in_desc, final R2Texture2DType in_t_depth) { this.framebuffer = NullCheck.notNull(in_framebuffer); this.desc = NullCheck.notNull(in_desc); this.t_depth = NullCheck.notNull(in_t_depth); long size = 0L; size += this.t_depth.texture().getRange().getInterval(); this.range = new UnsignedRangeInclusiveL(0L, size - 1L); }