/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/src/ |
H A D | bgfx_shader.sh | 176 return _sampler.m_texture.Sample(_sampler.m_sampler, _coord); 181 return _sampler.m_texture.SampleBias(_sampler.m_sampler, _coord, _bias); 197 return _sampler.m_texture.Sample(_sampler.m_sampler, coord); 203 return _sampler.m_texture.Sample(_sampler.m_sampler, coord); 213 return _sampler.m_texture.Sample(_sampler.m_sampler, _coord); 218 return _sampler.m_texture.SampleLevel(_sampler.m_sampler, _coord, _lod); 244 return _sampler.m_texture.Sample(_sampler.m_sampler, _coord); 268 return _sampler.m_texture.Sample(_sampler.m_sampler, _coord); 273 return _sampler.m_texture.SampleBias(_sampler.m_sampler, _coord, _bias); 305 return _sampler.m_texture.GatherRed(_sampler.m_sampler, _coord ); [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/src/ |
H A D | bgfx_shader.sh | 176 return _sampler.m_texture.Sample(_sampler.m_sampler, _coord); 181 return _sampler.m_texture.SampleBias(_sampler.m_sampler, _coord, _bias); 197 return _sampler.m_texture.Sample(_sampler.m_sampler, coord); 203 return _sampler.m_texture.Sample(_sampler.m_sampler, coord); 213 return _sampler.m_texture.Sample(_sampler.m_sampler, _coord); 218 return _sampler.m_texture.SampleLevel(_sampler.m_sampler, _coord, _lod); 244 return _sampler.m_texture.Sample(_sampler.m_sampler, _coord); 268 return _sampler.m_texture.Sample(_sampler.m_sampler, _coord); 273 return _sampler.m_texture.SampleBias(_sampler.m_sampler, _coord, _bias); 305 return _sampler.m_texture.GatherRed(_sampler.m_sampler, _coord ); [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/examples/16-shadowmaps/ |
H A D | common.sh | 80 float hardShadow(sampler2D _sampler, vec4 _shadowCoord, float _bias) 142 vec4 rgba = texture2D(_sampler, texCoord); 215 val = texture2D(_sampler, _uv0) * BLUR9_WEIGHT(0); 217 val = texture2D(_sampler, _uv1.xy) * BLUR9_WEIGHT(1); 219 val = texture2D(_sampler, _uv1.zw) * BLUR9_WEIGHT(1); 221 val = texture2D(_sampler, _uv2.xy) * BLUR9_WEIGHT(2); 223 val = texture2D(_sampler, _uv2.zw) * BLUR9_WEIGHT(2); 225 val = texture2D(_sampler, _uv3.xy) * BLUR9_WEIGHT(3); 227 val = texture2D(_sampler, _uv3.zw) * BLUR9_WEIGHT(3); 229 val = texture2D(_sampler, _uv4.xy) * BLUR9_WEIGHT(4); [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/examples/16-shadowmaps/ |
H A D | common.sh | 80 float hardShadow(sampler2D _sampler, vec4 _shadowCoord, float _bias) 142 vec4 rgba = texture2D(_sampler, texCoord); 215 val = texture2D(_sampler, _uv0) * BLUR9_WEIGHT(0); 217 val = texture2D(_sampler, _uv1.xy) * BLUR9_WEIGHT(1); 219 val = texture2D(_sampler, _uv1.zw) * BLUR9_WEIGHT(1); 221 val = texture2D(_sampler, _uv2.xy) * BLUR9_WEIGHT(2); 223 val = texture2D(_sampler, _uv2.zw) * BLUR9_WEIGHT(2); 225 val = texture2D(_sampler, _uv3.xy) * BLUR9_WEIGHT(3); 227 val = texture2D(_sampler, _uv3.zw) * BLUR9_WEIGHT(3); 229 val = texture2D(_sampler, _uv4.xy) * BLUR9_WEIGHT(4); [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/examples/15-shadowmaps-simple/ |
H A D | fs_sms_shadow.sh | 30 float hardShadow(Sampler _sampler, vec4 _shadowCoord, float _bias) 34 return step(texCoord.z-_bias, unpackRgbaToFloat(texture2D(_sampler, texCoord.xy) ) ); 36 return shadow2D(_sampler, vec3(texCoord.xy, texCoord.z-_bias) ); 40 float PCF(Sampler _sampler, vec4 _shadowCoord, float _bias, vec2 _texelSize) 56 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, -1.5) * offset, 0.0, 0.0), _bias); 57 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, -0.5) * offset, 0.0, 0.0), _bias); 58 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, 0.5) * offset, 0.0, 0.0), _bias); 59 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, 1.5) * offset, 0.0, 0.0), _bias); 66 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(0.5, -1.5) * offset, 0.0, 0.0), _bias); 67 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(0.5, -0.5) * offset, 0.0, 0.0), _bias); [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/examples/15-shadowmaps-simple/ |
H A D | fs_sms_shadow.sh | 30 float hardShadow(Sampler _sampler, vec4 _shadowCoord, float _bias) 34 return step(texCoord.z-_bias, unpackRgbaToFloat(texture2D(_sampler, texCoord.xy) ) ); 36 return shadow2D(_sampler, vec3(texCoord.xy, texCoord.z-_bias) ); 40 float PCF(Sampler _sampler, vec4 _shadowCoord, float _bias, vec2 _texelSize) 56 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, -1.5) * offset, 0.0, 0.0), _bias); 57 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, -0.5) * offset, 0.0, 0.0), _bias); 58 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, 0.5) * offset, 0.0, 0.0), _bias); 59 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, 1.5) * offset, 0.0, 0.0), _bias); 66 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(0.5, -1.5) * offset, 0.0, 0.0), _bias); 67 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(0.5, -0.5) * offset, 0.0, 0.0), _bias); [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/examples/31-rsm/ |
H A D | fs_rsm_combine.sc | 23 float hardShadow(sampler2DShadow _sampler, vec4 _shadowCoord, float _bias) 26 return shadow2D(_sampler, vec3(texCoord.xy, _shadowCoord.z-_bias) ); 29 float PCF(sampler2DShadow _sampler, vec4 _shadowCoord, float _bias, vec2 _texelSize) 45 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, -1.5) * offset, 0.0, 0.0), _bias); 46 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, -0.5) * offset, 0.0, 0.0), _bias); 47 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, 0.5) * offset, 0.0, 0.0), _bias); 48 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, 1.5) * offset, 0.0, 0.0), _bias); 50 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-0.5, -1.5) * offset, 0.0, 0.0), _bias); 55 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(0.5, -1.5) * offset, 0.0, 0.0), _bias); 56 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(0.5, -0.5) * offset, 0.0, 0.0), _bias); [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/examples/31-rsm/ |
H A D | fs_rsm_combine.sc | 23 float hardShadow(sampler2DShadow _sampler, vec4 _shadowCoord, float _bias) 26 return shadow2D(_sampler, vec3(texCoord.xy, _shadowCoord.z-_bias) ); 29 float PCF(sampler2DShadow _sampler, vec4 _shadowCoord, float _bias, vec2 _texelSize) 45 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, -1.5) * offset, 0.0, 0.0), _bias); 46 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, -0.5) * offset, 0.0, 0.0), _bias); 47 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, 0.5) * offset, 0.0, 0.0), _bias); 48 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-1.5, 1.5) * offset, 0.0, 0.0), _bias); 50 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(-0.5, -1.5) * offset, 0.0, 0.0), _bias); 55 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(0.5, -1.5) * offset, 0.0, 0.0), _bias); 56 result += hardShadow(_sampler, _shadowCoord + vec4(vec2(0.5, -0.5) * offset, 0.0, 0.0), _bias); [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/examples/09-hdr/ |
H A D | common.sh | 32 vec4 blur9(sampler2D _sampler, vec2 _uv0, vec4 _uv1, vec4 _uv2, vec4 _uv3, vec4 _uv4) 43 blur = texture2D(_sampler, _uv0)*BLUR9_WEIGHT(0); 44 blur += texture2D(_sampler, _uv1.xy)*BLUR9_WEIGHT(1); 45 blur += texture2D(_sampler, _uv1.zw)*BLUR9_WEIGHT(1); 46 blur += texture2D(_sampler, _uv2.xy)*BLUR9_WEIGHT(2); 47 blur += texture2D(_sampler, _uv2.zw)*BLUR9_WEIGHT(2); 48 blur += texture2D(_sampler, _uv3.xy)*BLUR9_WEIGHT(3); 49 blur += texture2D(_sampler, _uv3.zw)*BLUR9_WEIGHT(3); 50 blur += texture2D(_sampler, _uv4.xy)*BLUR9_WEIGHT(4); 51 blur += texture2D(_sampler, _uv4.zw)*BLUR9_WEIGHT(4);
|
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/examples/09-hdr/ |
H A D | common.sh | 32 vec4 blur9(sampler2D _sampler, vec2 _uv0, vec4 _uv1, vec4 _uv2, vec4 _uv3, vec4 _uv4) 43 blur = texture2D(_sampler, _uv0)*BLUR9_WEIGHT(0); 44 blur += texture2D(_sampler, _uv1.xy)*BLUR9_WEIGHT(1); 45 blur += texture2D(_sampler, _uv1.zw)*BLUR9_WEIGHT(1); 46 blur += texture2D(_sampler, _uv2.xy)*BLUR9_WEIGHT(2); 47 blur += texture2D(_sampler, _uv2.zw)*BLUR9_WEIGHT(2); 48 blur += texture2D(_sampler, _uv3.xy)*BLUR9_WEIGHT(3); 49 blur += texture2D(_sampler, _uv3.zw)*BLUR9_WEIGHT(3); 50 blur += texture2D(_sampler, _uv4.xy)*BLUR9_WEIGHT(4); 51 blur += texture2D(_sampler, _uv4.zw)*BLUR9_WEIGHT(4);
|
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/examples/osganimationmakepath/ |
H A D | osganimationmakepath.cpp | 45 _sampler(val._sampler), in AnimtkUpdateCallback() 64 if (_playing && _sampler.get() && _sampler->getKeyframeContainer()) in operator ()() 70 float duration = _sampler->getEndTime() - _sampler->getStartTime(); in operator ()() 72 t += _sampler->getStartTime(); in operator ()() 110 _sampler(val._sampler), in AnimtkStateSetUpdateCallback() 129 if (_playing && _sampler.get() && _sampler->getKeyframeContainer()) in operator ()() 136 float duration = _sampler->getEndTime() - _sampler->getStartTime(); in operator ()() 138 t += _sampler->getStartTime(); in operator ()() 139 _sampler->getValueAt(t, result); in operator ()() 179 _sampler->getValueAt(t, pos); in operator ()() [all …]
|
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/examples/osganimationmakepath/ |
H A D | osganimationmakepath.cpp | 46 _sampler(val._sampler), in AnimtkUpdateCallback() 65 if (_playing && _sampler.get() && _sampler->getKeyframeContainer()) in operator ()() 71 float duration = _sampler->getEndTime() - _sampler->getStartTime(); in operator ()() 73 t += _sampler->getStartTime(); in operator ()() 112 _sampler(val._sampler), in AnimtkStateSetUpdateCallback() 131 if (_playing && _sampler.get() && _sampler->getKeyframeContainer()) in operator ()() 138 float duration = _sampler->getEndTime() - _sampler->getStartTime(); in operator ()() 140 t += _sampler->getStartTime(); in operator ()() 141 _sampler->getValueAt(t, result); in operator ()() 181 _sampler->getValueAt(t, pos); in operator ()() [all …]
|
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/examples/osganimationnode/ |
H A D | osganimationnode.cpp | 39 _sampler(val._sampler), in AnimtkUpdateCallback() 57 if (_playing && _sampler.get() && _sampler->getKeyframeContainer()) { in operator ()() 62 float duration = _sampler->getEndTime() - _sampler->getStartTime(); in operator ()() 64 t += _sampler->getStartTime(); in operator ()() 65 _sampler->getValueAt(t, result); in operator ()() 94 _sampler = new osgAnimation::Vec4LinearSampler; in AnimtkStateSetUpdateCallback() 102 _sampler(val._sampler), in AnimtkStateSetUpdateCallback() 122 if (_playing && _sampler.get() && _sampler->getKeyframeContainer()) in operator ()() 129 float duration = _sampler->getEndTime() - _sampler->getStartTime(); in operator ()() 131 t += _sampler->getStartTime(); in operator ()() [all …]
|
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/examples/osganimationnode/ |
H A D | osganimationnode.cpp | 40 _sampler(val._sampler), in AnimtkUpdateCallback() 58 if (_playing && _sampler.get() && _sampler->getKeyframeContainer()) { in operator ()() 63 float duration = _sampler->getEndTime() - _sampler->getStartTime(); in operator ()() 65 t += _sampler->getStartTime(); in operator ()() 66 _sampler->getValueAt(t, result); in operator ()() 95 _sampler = new osgAnimation::Vec4LinearSampler; in AnimtkStateSetUpdateCallback() 104 _sampler(val._sampler), in AnimtkStateSetUpdateCallback() 124 if (_playing && _sampler.get() && _sampler->getKeyframeContainer()) in operator ()() 131 float duration = _sampler->getEndTime() - _sampler->getStartTime(); in operator ()() 133 t += _sampler->getStartTime(); in operator ()() [all …]
|
/dports/misc/usd/USD-21.11/pxr/imaging/plugin/hdEmbree/ |
H A D | meshSamplers.h | 90 , _sampler(_buffer) {} in HdEmbreeConstantSampler() 106 HdEmbreeBufferSampler const _sampler; variable 129 , _sampler(_buffer) in HdEmbreeUniformSampler() 138 , _sampler(_buffer) {} in HdEmbreeUniformSampler() 156 HdEmbreeBufferSampler const _sampler; variable 179 , _sampler(_buffer) in HdEmbreeTriangleVertexSampler() 199 HdEmbreeBufferSampler const _sampler; variable 230 , _sampler(_buffer) {} in HdEmbreeTriangleFaceVaryingSampler() 250 HdEmbreeBufferSampler const _sampler; variable
|
H A D | meshSamplers.cpp | 74 return _sampler.Sample(0, value, dataType); in Sample() 84 return _sampler.Sample(element, value, dataType); in Sample() 89 return _sampler.Sample( in Sample() 105 if (!_sampler.Sample(_indices[element][0], &corners[0], dataType) || in Sample() 106 !_sampler.Sample(_indices[element][1], &corners[1], dataType) || in Sample() 107 !_sampler.Sample(_indices[element][2], &corners[2], dataType)) { in Sample() 126 if (!_sampler.Sample(element*3 + 0, &corners[0], dataType) || in Sample() 127 !_sampler.Sample(element*3 + 1, &corners[1], dataType) || in Sample() 128 !_sampler.Sample(element*3 + 2, &corners[2], dataType)) { in Sample()
|
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/include/osgAnimation/ |
H A D | Channel | 95 _sampler = s; 111 _sampler->getKeyframeContainerTyped()->push_back(key); 122 _sampler->getValueAt(time, value); 135 if (!_sampler.valid()) 136 _sampler = new SamplerType; 137 return _sampler.get(); 140 Sampler* getSampler() { return _sampler.get(); } 141 const Sampler* getSampler() const { return _sampler.get(); } 143 SamplerType* getSamplerTyped() { return _sampler.get();} 145 void setSampler(SamplerType* sampler) { _sampler = sampler; } [all …]
|
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/include/osgAnimation/ |
H A D | Channel | 103 _sampler = s; 119 _sampler->getKeyframeContainerTyped()->push_back(key); 130 _sampler->getValueAt(time, value); 143 if (!_sampler.valid()) 144 _sampler = new SamplerType; 145 return _sampler.get(); 148 Sampler* getSampler() { return _sampler.get(); } 149 const Sampler* getSampler() const { return _sampler.get(); } 151 SamplerType* getSamplerTyped() { return _sampler.get();} 153 void setSampler(SamplerType* sampler) { _sampler = sampler; } [all …]
|
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/hotspot/src/share/vm/jfr/periodic/sampling/ |
H A D | jfrThreadSampler.cpp | 145 OSThreadSampler& _sampler; member in OSThreadSamplerCallback 607 if (_sampler != NULL) { in ~JfrThreadSampling() 608 _sampler->disenroll(); in ~JfrThreadSampling() 620 _sampler->start_thread(); in start_sampler() 621 _sampler->enroll(); in start_sampler() 627 if (_sampler != NULL) { in set_sampling_interval() 637 if (_sampler == NULL) { in set_sampling_interval() 643 _sampler->enroll(); in set_sampling_interval() 647 } else if (_sampler != NULL) { in set_sampling_interval() 648 _sampler->disenroll(); in set_sampling_interval() [all …]
|
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/hotspot/src/share/vm/jfr/periodic/sampling/ |
H A D | jfrThreadSampler.cpp | 145 OSThreadSampler& _sampler; member in OSThreadSamplerCallback 607 if (_sampler != NULL) { in ~JfrThreadSampling() 608 _sampler->disenroll(); in ~JfrThreadSampling() 620 _sampler->start_thread(); in start_sampler() 621 _sampler->enroll(); in start_sampler() 627 if (_sampler != NULL) { in set_sampling_interval() 637 if (_sampler == NULL) { in set_sampling_interval() 643 _sampler->enroll(); in set_sampling_interval() 647 } else if (_sampler != NULL) { in set_sampling_interval() 648 _sampler->disenroll(); in set_sampling_interval() [all …]
|
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/hotspot/share/jfr/periodic/sampling/ |
H A D | jfrThreadSampler.cpp | 144 _sampler.protected_task(_context); in call() 147 OSThreadSampler& _sampler; member in OSThreadSamplerCallback 572 if (_sampler != NULL) { in ~JfrThreadSampling() 573 _sampler->disenroll(); in ~JfrThreadSampling() 585 _sampler->start_thread(); in start_sampler() 586 _sampler->enroll(); in start_sampler() 592 if (_sampler != NULL) { in set_sampling_interval() 602 if (_sampler == NULL) { in set_sampling_interval() 608 _sampler->enroll(); in set_sampling_interval() 612 } else if (_sampler != NULL) { in set_sampling_interval() [all …]
|
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/hotspot/share/jfr/periodic/sampling/ |
H A D | jfrThreadSampler.cpp | 144 _sampler.protected_task(_context); in call() 147 OSThreadSampler& _sampler; member in OSThreadSamplerCallback 572 if (_sampler != NULL) { in ~JfrThreadSampling() 573 _sampler->disenroll(); in ~JfrThreadSampling() 585 _sampler->start_thread(); in start_sampler() 586 _sampler->enroll(); in start_sampler() 592 if (_sampler != NULL) { in set_sampling_interval() 602 if (_sampler == NULL) { in set_sampling_interval() 608 _sampler->enroll(); in set_sampling_interval() 612 } else if (_sampler != NULL) { in set_sampling_interval() [all …]
|
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/src/hotspot/share/jfr/periodic/sampling/ |
H A D | jfrThreadSampler.cpp | 144 _sampler.protected_task(_context); in call() 147 OSThreadSampler& _sampler; member in OSThreadSamplerCallback 574 if (_sampler != NULL) { in ~JfrThreadSampling() 575 _sampler->disenroll(); in ~JfrThreadSampling() 587 _sampler->start_thread(); in start_sampler() 588 _sampler->enroll(); in start_sampler() 594 if (_sampler != NULL) { in set_sampling_interval() 604 if (_sampler == NULL) { in set_sampling_interval() 610 _sampler->enroll(); in set_sampling_interval() 614 } else if (_sampler != NULL) { in set_sampling_interval() [all …]
|
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/hotspot/share/jfr/periodic/sampling/ |
H A D | jfrThreadSampler.cpp | 144 _sampler.protected_task(_context); in call() 147 OSThreadSampler& _sampler; member in OSThreadSamplerCallback 569 if (_sampler != NULL) { in ~JfrThreadSampling() 570 _sampler->disenroll(); in ~JfrThreadSampling() 582 _sampler->start_thread(); in start_sampler() 583 _sampler->enroll(); in start_sampler() 589 if (_sampler != NULL) { in set_sampling_interval() 599 if (_sampler == NULL) { in set_sampling_interval() 605 _sampler->enroll(); in set_sampling_interval() 609 } else if (_sampler != NULL) { in set_sampling_interval() [all …]
|
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/src/hotspot/share/jfr/periodic/sampling/ |
H A D | jfrThreadSampler.cpp | 148 _sampler.protected_task(_context); in call() 151 OSThreadSampler& _sampler; member in OSThreadSamplerCallback 586 if (_sampler != NULL) { in ~JfrThreadSampling() 587 _sampler->disenroll(); in ~JfrThreadSampling() 599 _sampler->start_thread(); in start_sampler() 600 _sampler->enroll(); in start_sampler() 606 if (_sampler != NULL) { in set_sampling_interval() 616 if (_sampler == NULL) { in set_sampling_interval() 622 _sampler->enroll(); in set_sampling_interval() 626 } else if (_sampler != NULL) { in set_sampling_interval() [all …]
|