Beispiel #1
0
        protected override void OnValidate(Validation.ValidationContext result)
        {
            base.OnValidate(result);

            var buffer   = this.LogicalParent.LogicalBuffers[this._buffer];
            var bcontent = buffer.Content;

            result.CheckArrayRangeAccess("ByteOffset", _byteOffset, _byteLength, buffer.Content);

            if (ByteStride > _byteLength)
            {
                result.AddSemanticError(nameof(ByteStride), $"value ({ByteStride}) is larger than byteLength ({_byteLength}).");
            }

            // if (this.DeviceBufferTarget.HasValue && this.FindAccessors().Any(item => item.IsSparse)) result.AddError()
        }