mirror of
https://github.com/barkeser2002/flower.git
synced 2026-09-25 14:16:14 +03:00
23 lines
605 B
GLSL
23 lines
605 B
GLSL
#version 460
|
|
#extension GL_GOOGLE_include_directive : enable
|
|
#extension GL_EXT_samplerless_texture_functions : require
|
|
|
|
#include "common/shared_functions.glsl"
|
|
|
|
layout (set = 0, binding = 0) buffer SSBOPickId { uint pickSceneNodeId; };
|
|
layout (set = 0, binding = 1) uniform utexture2D inSceneNodeIdTexture;
|
|
|
|
#define SHARED_SAMPLER_SET 1
|
|
#include "common/shared_sampler.glsl"
|
|
|
|
layout(push_constant) uniform PushConsts
|
|
{
|
|
vec2 pickUv;
|
|
};
|
|
|
|
void main()
|
|
{
|
|
uint loadId = texture(usampler2D(inSceneNodeIdTexture, pointClampEdgeSampler), pickUv).r;
|
|
|
|
pickSceneNodeId = unpackToSceneNodeId(loadId);
|
|
} |