public BsdfSampleOffsets(int numSamples, Sample sample) { NumSamples = numSamples; ComponentOffset = sample.Add1D(numSamples); PosOffset = sample.Add2D(numSamples); }