struct
Texture3DBuilder
public sealed struct Texture3DBuilder Constructors
Texture3DBuilder() Methods
Texture3DBuilder WithStaticUsage() Texture3DBuilder WithSemiStaticUsage() Texture3DBuilder WithDynamicUsage() Texture3DBuilder WithGPUOnlyUsage() Texture3DBuilder WithUAVBinding() Texture3DBuilder WithMips(Int32 mips) Texture3DBuilder WithFormat(ImageFormat format) Texture3DBuilder WithScreenFormat() Texture3DBuilder WithDepthFormat() Texture3DBuilder WithMultiSample2X() Texture3DBuilder WithMultiSample4X() Texture3DBuilder WithMultiSample6X() Texture3DBuilder WithMultiSample8X() Texture3DBuilder WithMultiSample16X() Texture3DBuilder WithScreenMultiSample() Texture3DBuilder WithName(String name) Provide a name to identify the texture by
name — Desired texture name Texture3DBuilder WithData(Byte[] data) Initialize texture with pre-existing texture data
data — Texture data Texture3DBuilder WithData(Byte[] data, Int32 dataLength) Initialize texture with pre-existing texture data
data — Texture data dataLength — How big our texture data is Texture3DBuilder WithMultisample(MultisampleAmount amount) Define which how much multisampling the current texture should use
amount — Multisampling amount Texture3DBuilder WithAnonymous(Boolean isAnonymous) Set whether the texture is an anonymous texture or not
isAnonymous — Set if it's anonymous or not Texture Finish() Build and create the actual texture
Texture3DBuilder WithSize(Int32 width = 1, Int32 height = 1, Int32 depth = 1) Create texture with a predefined size
width — Width in pixel height — Height in pixels depth — Depth in pixels Texture3DBuilder WithSize(Vector3 size) Create texture with a predefined size
size — Width, Height and Depth in pixels