gpu-curtains
Version:
gpu-curtains is a 3D WebGPU rendering engine. It can be used as a standalone 3D engine, but also includes extra classes focused on mapping 3d objects to DOM elements; It allows users to synchronize values such as position, sizing, or scale between them.
18 lines (15 loc) • 393 B
JavaScript
import { getVertexOutputStructContent } from '../../vertex/head/get-vertex-output-struct-content.mjs';
const getFragmentInputStruct = ({
geometry,
additionalVaryings = []
}) => {
return (
/* wgsl */
`
struct FSInput {
@builtin(front_facing) frontFacing: bool,
${getVertexOutputStructContent({ geometry, additionalVaryings })}
};`
);
};
export { getFragmentInputStruct };