您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
23 行
478 B
23 行
478 B
// Autogenerated file. Do not edit by hand
|
|
|
|
#include "../ShaderLibrary/Common.hlsl"
|
|
|
|
SamplerState sampler_LinearClamp;
|
|
|
|
CBUFFER_START(cb)
|
|
float4 _Size;
|
|
CBUFFER_END
|
|
|
|
RWTexture2D<float1> _Result1;
|
|
|
|
Texture2D<float4> _Source4;
|
|
|
|
|
|
#pragma kernel KSampleCopy4_1_x
|
|
[numthreads(8, 8, 1)]
|
|
void KSampleCopy4_1_x(uint2 dispatchThreadId : SV_DispatchThreadID)
|
|
{
|
|
_Result1[dispatchThreadId] = _Source4.SampleLevel(sampler_LinearClamp, float2(dispatchThreadId) * _Size.zw, 0.0).x;
|
|
}
|
|
|
|
|