github
6320 of 6962 branches covered (90.78%)
Branch coverage included in aggregate %.
0 of 749 new or added lines in 5 files covered. (0.0%)
52082 of 58986 relevant lines covered (88.3%)
6530.99 hits per line
NEW
|
import type {Device, Framebuffer} from '@luma.gl/core'; |
|
NEW
|
|
× |
NEW
|
/**
|
× |
NEW
|
* Marks GLSL shaders for syntax highlighting: glsl`...` |
× |
NEW
|
* Install https://marketplace.visualstudio.com/items?itemName=boyswan.glsl-literal |
× |
NEW
|
*/ |
× |
NEW
|
export const glsl = (s: TemplateStringsArray) => `${s}`; |
× |
NEW
|
|
× |
NEW
|
/**
|
× |
NEW
|
* Create a float texture to store aggregation result |
× |
NEW
|
*/ |
× |
NEW
|
export function createRenderTarget(device: Device, width: number, height: number): Framebuffer {
|
× |
NEW
|
return device.createFramebuffer({
|
× |
NEW
|
width, |
× |
NEW
|
height, |
× |
NEW
|
colorAttachments: [ |
× |
NEW
|
device.createTexture({ |
× |
NEW
|
width, |
× |
NEW
|
height, |
× |
NEW
|
format: 'rgba32float', |
× |
NEW
|
mipmaps: false,
|
× |
NEW
|
sampler: { |
× |
NEW
|
minFilter: 'nearest', |
× |
NEW
|
magFilter: 'nearest' |
× |
NEW
|
} |
× |
NEW
|
}) |
× |
NEW
|
] |
× |
NEW
|
}); |
× |
NEW
|
} |
× |