Documentation ¶
Index ¶
- Variables
- func NewFrameCounter(samples int) *framecounter
- func NewStatsGUI(pool object.Pool) gui.Fragment
- func RunProfilingServer(port int)
- type App
- type RenderTarget
- func NewColorTarget(device *device.Device, key string, format core1_0.Format, size TargetSize) *RenderTarget
- func NewDepthTarget(device *device.Device, key string, size TargetSize) *RenderTarget
- func NewRenderTarget(device *device.Device, key string, format core1_0.Format, ...) (*RenderTarget, error)
- func (i *RenderTarget) Aquire(worker command.Worker) (*swapchain.Context, error)
- func (r *RenderTarget) Destroy()
- func (r *RenderTarget) Frames() int
- func (r *RenderTarget) Height() int
- func (t *RenderTarget) Present(worker command.Worker, context *swapchain.Context)
- func (r *RenderTarget) Scale() float32
- func (r *RenderTarget) Size() TargetSize
- func (i *RenderTarget) SurfaceFormat() core1_0.Format
- func (i *RenderTarget) Surfaces() image.Array
- func (r *RenderTarget) Width() int
- type Renderer
- type RendererFunc
- type Target
- type TargetSize
- type Timing
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDescriptorPools = []core1_0.DescriptorPoolSize{ { Type: core1_0.DescriptorTypeUniformBuffer, DescriptorCount: 10000, }, { Type: core1_0.DescriptorTypeStorageBuffer, DescriptorCount: 10000, }, { Type: core1_0.DescriptorTypeCombinedImageSampler, DescriptorCount: 100000, }, { Type: core1_0.DescriptorTypeInputAttachment, DescriptorCount: 1000, }, }
Functions ¶
func NewFrameCounter ¶
func NewFrameCounter(samples int) *framecounter
func RunProfilingServer ¶
func RunProfilingServer(port int)
Types ¶
type App ¶
type App interface { Instance() *instance.Instance Device() *device.Device Destroy() Worker() command.Worker Flush() Pool() *descriptor.Pool Meshes() cache.MeshCache Textures() cache.TextureCache Shaders() cache.ShaderCache }
type RenderTarget ¶
type RenderTarget struct {
// contains filtered or unexported fields
}
func NewColorTarget ¶
func NewColorTarget(device *device.Device, key string, format core1_0.Format, size TargetSize) *RenderTarget
func NewDepthTarget ¶
func NewDepthTarget(device *device.Device, key string, size TargetSize) *RenderTarget
func NewRenderTarget ¶
func NewRenderTarget(device *device.Device, key string, format core1_0.Format, usage core1_0.ImageUsageFlags, size TargetSize) (*RenderTarget, error)
func (*RenderTarget) Destroy ¶
func (r *RenderTarget) Destroy()
func (*RenderTarget) Frames ¶
func (r *RenderTarget) Frames() int
func (*RenderTarget) Height ¶
func (r *RenderTarget) Height() int
func (*RenderTarget) Present ¶
func (t *RenderTarget) Present(worker command.Worker, context *swapchain.Context)
func (*RenderTarget) Scale ¶
func (r *RenderTarget) Scale() float32
func (*RenderTarget) Size ¶
func (r *RenderTarget) Size() TargetSize
func (*RenderTarget) SurfaceFormat ¶
func (i *RenderTarget) SurfaceFormat() core1_0.Format
func (*RenderTarget) Surfaces ¶
func (i *RenderTarget) Surfaces() image.Array
func (*RenderTarget) Width ¶
func (r *RenderTarget) Width() int
type RendererFunc ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.