struct
TextureArrayBuilder
public sealed struct TextureArrayBuilder Constructors
TextureArrayBuilder() Methods
TextureArrayBuilder WithStaticUsage() TextureArrayBuilder WithSemiStaticUsage() TextureArrayBuilder WithDynamicUsage() TextureArrayBuilder WithGPUOnlyUsage() TextureArrayBuilder WithUAVBinding() TextureArrayBuilder WithMips(Int32 mips) TextureArrayBuilder WithFormat(ImageFormat format) TextureArrayBuilder WithScreenFormat() TextureArrayBuilder WithDepthFormat() TextureArrayBuilder WithMultiSample2X() TextureArrayBuilder WithMultiSample4X() TextureArrayBuilder WithMultiSample6X() TextureArrayBuilder WithMultiSample8X() TextureArrayBuilder WithMultiSample16X() TextureArrayBuilder WithScreenMultiSample() TextureArrayBuilder WithName(String name) Provide a name to identify the texture by
name — Desired texture name TextureArrayBuilder WithData(Byte[] data) Initialize texture with pre-existing texture data
data — Texture data TextureArrayBuilder WithData(Byte[] data, Int32 dataLength) Initialize texture with pre-existing texture data
data — Texture data dataLength — How big our texture data is TextureArrayBuilder WithMultisample(MultisampleAmount amount) Define which how much multisampling the current texture should use
amount — Multisampling amount TextureArrayBuilder 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
TextureArrayBuilder WithSize(Int32 width = 1, Int32 height = 1) Create texture with a predefined size
width — Width in pixel height — Height in pixels TextureArrayBuilder WithCount(Int32 count = 1) Create texture array with this many textures