cfg

package
v0.0.0-...-b05aa3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FORMAT_CURRENT_SURFACE vk.Format = vk.FORMAT_END_RANGE + iota
	FORMAT_CURRENT_DEPTH
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Name           string
	Flags          vk.AttachmentDescriptionFlags
	Format         vk.Format
	Samples        vk.SampleCountFlags
	LoadOp         vk.AttachmentLoadOp
	StoreOp        vk.AttachmentStoreOp
	StencilLoadOp  vk.AttachmentLoadOp
	StencilStoreOp vk.AttachmentStoreOp
	InitialLayout  vk.ImageLayout
	FinalLayout    vk.ImageLayout
}

type ColorBlend

type ColorBlend struct {
	Name                string
	BlendEnable         bool
	SrcColorBlendFactor vk.BlendFactor
	DstColorBlendFactor vk.BlendFactor
	ColorBlendOp        vk.BlendOp
	SrcAlphaBlendFactor vk.BlendFactor
	DstAlphaBlendFactor vk.BlendFactor
	AlphaBlendOp        vk.BlendOp
	ColorWriteMask      vk.ColorComponentFlags
}

ColorBlend -- https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkPipelineColorBlendAttachmentState.html

type DepthStencil

type DepthStencil struct {
	Name                  string
	Flags                 vk.PipelineDepthStencilStateCreateFlags
	DepthTestEnable       bool
	DepthWriteEnable      bool
	DepthCompareOp        vk.CompareOp
	DepthBoundsTestEnable bool
	StencilTestEnable     bool
	Front                 vk.StencilOpState
	Back                  vk.StencilOpState
	MinDepthBounds        float32
	MaxDepthBounds        float32
}

DepthStencil -- https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkPipelineDepthStencilStateCreateInfo.html

type Options

type Options struct {
	Vulkan struct {
		ApiVersion string
	}

	Debug struct {
		Report    int     // 0=OFF 1=ON 2=VERBOSE 3=FULL
		Wireframe float32 // verbose debug report
	}

	Application struct {
		Name    string `opt:"-"`
		Version string `opt:"-"`
	}
}

type Pipeline

type Pipeline struct {
	Shaders        []string
	VertexInput    string
	PipelineLayout string
	InputAssembly  string
	Viewports      []vk.Viewport
	Scissors       []vk.Rect2D
	DepthStencil   string
	Rasterization  string
	ColorBlends    []string
	RenderPass     vk.RenderPass
	Subpass        uint32
}

type PipelineLayout

type PipelineLayout struct {
	Name                 string
	DescriptorSetLayouts []string
	PushConstantRanges   []string
}

type Rasterization

type Rasterization struct {
	Name                    string
	Flags                   vk.PipelineRasterizationStateCreateFlags // reserved
	DepthClampEnable        bool
	RasterizerDiscardEnable bool
	PolygonMode             vk.PolygonMode
	CullMode                vk.CullModeFlags
	FrontFace               vk.FrontFace
	DepthBiasEnable         bool
	DepthBiasConstantFactor float32
	DepthBiasClamp          float32
	DepthBiasSlopeFactor    float32
	LineWidth               float32
}

Rasterization -- https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkPipelineRasterizationStateCreateInfo.html

type RenderPass

type RenderPass struct {
	Name           string
	Flags          vk.RenderPassCreateFlags
	Attachments    []string
	Subpasses      []Subpass
	SubpassDepends []SubpassDependency
}

type Subpass

type Subpass struct {
	Flags                  vk.SubpassDescriptionFlags
	PipelineBindPoint      vk.PipelineBindPoint
	InputAttachments       []AttachmentReference
	ColorAttachments       []AttachmentReference
	ResolveAttachments     []AttachmentReference
	DepthStencilAttachment *AttachmentReference
	PreserveAttachments    []uint32
}

type Suite

type Suite struct {
	InputAssemblies    []InputAssembly
	DepthStencils      []DepthStencil
	ColorBlends        []ColorBlend
	Rasterizations     []Rasterization
	VertexInputStates  []VertexInputState
	DescriptorLayouts  []DescriptorSetLayout
	PushConstantRanges []PushConstantRange
	PipelineLayouts    []PipelineLayout
	Attachments        []Attachment
	RenderPasses       []RenderPass

	EmbededFiles map[string][]byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL