Create(Device,DataStream,Int32,ResourceUsage,BindFlags,CpuAccessFlags,ResourceMiscFlags,Int32) Method
In This Topic
Initializes a new instance of the
Buffer class.
Syntax
Parameters
- device
- The device with which to associate the buffer.
- data
- Initial data used to initialize the buffer.
- sizeInBytes
- The size, in bytes, of the buffer.
- usage
- The usage pattern for the buffer.
- bindFlags
- Flags specifying how the buffer will be bound to the pipeline.
- accessFlags
- Flags specifying how the buffer will be accessible from the CPU.
- miscFlags
- Miscellaneous resource options.
- structureByteStride
- The size (in bytes) of the structure element for structured buffers.
See Also