Tópicos: Fragment Operations

Coverage Reduction

outubro 21, 2023 7
Coverage reduction takes the coverage information for a fragment and converts that to a boolean coverage value for each color sample in each pixel covered by the fragment.Pixel CoverageCoverage for each pixel is first extracted from the total fragment coverage mask. This consists of rasteri...
Ler mais

Sample Counting

outubro 21, 2023 6
Occlusion queries use query pool entries to track the number of samples that pass all the perfragment tests. The mechanism of collecting an occlusion query value is described in Occlusion Queries.The occlusion query sample counter increments by one for each sample with a coverage value of 1 in ...
Ler mais

Fragment Operations

outubro 21, 2023 21
Fragments produced by rasterization go through a number of operations to determine whether or how values produced by fragment shading are written to the framebuffer.The following fragment operations adhere to rasterization order, and are typically performed in this order:Scissor testSa...
Ler mais

Scissor Test

outubro 21, 2023 2
The scissor test compares the framebuffer coordinates (xf, yf) of each sample covered by a fragment against a scissor rectangle at the index equal to the fragment’s ViewportIndex.Each scissor rectangle is defined by a afxRect. These values are either set by the VkPipelineViewportStateCreateInfo...
Ler mais

Sample Mask Test

outubro 21, 2023 1
The sample mask test compares the coverage mask for a fragment with the sample mask defined by afxPipelineMultisamplingConfig::sampleMasks.Each bit of the coverage mask is associated with a sample index as described in the rasterization chapter. If the bit in afxPipelineMultisamplingConfig::sam...
Ler mais

Fragment Shading

outubro 21, 2023 2
Fragment shaders are invoked for each fragment, or as helper invocations.Most operations in the fragment shader are not performed in rasterization order, with exceptions called out in the following sections.For fragment shaders invoked by fragments, the following rules apply:A fragment...
Ler mais

Multisample Coverage

outubro 21, 2023 1
If a fragment shader is active and its entry point’s interface includes a built-in output variable decorated with SampleMask, the coverage mask is ANDed with the bits of the SampleMask built-in to generate a new coverage mask. If sample shading is enabled, bits written to SampleMask corresponding t...
Ler mais

Depth and Stencil Operations

outubro 21, 2023 1
Pipeline state controlling the depth bounds tests, stencil test, and depth test is specified through the members of the afxPipelineDepthConfig structure.The afxPipelineDepthConfig structure is defined as:AFX_DEFINE_STRUCT(afxPipelineDepthConfig) { afxBool depthTestEnabled; /// controls ...
Ler mais

Stencil Test

outubro 21, 2023 1
The stencil test compares the stencil attachment value sa in the depth/stencil attachment at each sample’s framebuffer coordinates (xf, yf) and sample index i against a stencil reference value.If the stencil test is not enabled, as specified by AfxCmdEnableStencilTest or VkPipelineDepthStencilS...
Ler mais

Depth Bounds Test

outubro 21, 2023 2
The depth bounds test compares the depth value za in the depth/stencil attachment at each sample’s framebuffer coordinates (xf ,yf) and sample index i against a set of depth bounds.The depth bounds are determined by two floating point values defining a minimum (minDepthBounds) and maximum (maxD...
Ler mais
Translate »